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

how to calculate timing in keil arm c program

Hi any one please tell me how to calculate tne time delay in keil c program usink keil ide

Parents
  • There is absolutely no way whatsoever to predict in advance how many machine cycles will be required by any high-level source construct.

    This is fundamental to the whole idea of high-level languages!

    You can examine or measure the generated machine code after compilation - but you cannot predict it before compilation.

    And you cannot guarantee that it will remain the same after subsequent compilations - even if you don't change any compiler settings!

    Therefore, if you really need to know, do it in assembler!

Reply
  • There is absolutely no way whatsoever to predict in advance how many machine cycles will be required by any high-level source construct.

    This is fundamental to the whole idea of high-level languages!

    You can examine or measure the generated machine code after compilation - but you cannot predict it before compilation.

    And you cannot guarantee that it will remain the same after subsequent compilations - even if you don't change any compiler settings!

    Therefore, if you really need to know, do it in assembler!

Children