Skip to main content
Visitor II
April 20, 2005
Question

Instruction cycle and program space.

  • April 20, 2005
  • 3 replies
  • 640 views
Posted on April 20, 2005 at 07:12

Instruction cycle and program space.

    This topic has been closed for replies.

    3 replies

    ongth60Author
    Visitor II
    April 19, 2005
    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

    ongth60Author
    Visitor II
    April 19, 2005
    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

    Visitor II
    April 20, 2005
    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