This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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 it is important for your application for you to know this, then you should be writing it in assembler - then you know exactly what you will get!

    Why so categorical? I _always_ try to estimate execution time and expected rate of triggering of my ISRs. Just to make sure I don't overwhelm the CPU. Knowing that I have a good margin in CPU usage, I can be sure that minor modifications in compiler output will not change my estimate dramatically.

Reply
  • If it is important for your application for you to know this, then you should be writing it in assembler - then you know exactly what you will get!

    Why so categorical? I _always_ try to estimate execution time and expected rate of triggering of my ISRs. Just to make sure I don't overwhelm the CPU. Knowing that I have a good margin in CPU usage, I can be sure that minor modifications in compiler output will not change my estimate dramatically.

Children