cancel
Showing results for 
Search instead for 
Did you mean: 

Instruction cycle and program space.

ongth60
Associate II
Posted on April 20, 2005 at 07:12

Instruction cycle and program space.

3 REPLIES 3
ongth60
Associate II
Posted on April 19, 2005 at 02:18

Hi all,

1. What options are available to check the size of my program code?

2.Since my application is time-critical, how can i measure the time taken for a function to execute? Also, what is the period for one instruction cycle?

3.How many instruction cycles will a C statement take, for example:

TIM1->OCBR += 0x9C40;

Warm regards,

TH Ong

ongth60
Associate II
Posted on April 19, 2005 at 23:11

Hi,

If then, how can I measure the time taken by a function if my appliction is time-critical?

Rgrds,

TH Ong

hichem2
Associate II
Posted on April 20, 2005 at 07:12

Hi ongth60,

As RISC said is not easy to know the execution time for ARM instructions, so if you want to measure the time taken by a function, you can use the TIMER(at the beginning and the end of the section code) to do it.

Regards,

Hich :o