Execution Time

Hello, I want to determine execution time required for a function which executes when a serial interrupt occurs. I am using Keil C compiler for it. Can anybody tell me procedure for the same.

Regards,
Abhijeet R. Mudgal.

Parents
  • If the function is written in C, then let the compiler generate assembly code and count the cycles needed for the assembly instructions. However, this will only be valid for this compilation run, if you change the program, the compiler, or the compiler settings, you'll have to do the calulcation again.

Reply
  • If the function is written in C, then let the compiler generate assembly code and count the cycles needed for the assembly instructions. However, this will only be valid for this compilation run, if you change the program, the compiler, or the compiler settings, you'll have to do the calulcation again.

Children
No data
More questions in this forum