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

inline \ MACROs

Hi,
I want to avoid the CALL \ RET overhead of a certain function which is called only once in my program.

I understand the uVision compiler does not support the inline keyword (http://www.keil.com/support/docs/1755.htm), and I should use macros instead.
The problem is that uVision cannot step into macros when debugging.

Is there any good solution for this problem?

Parents
  • "I want to avoid the CALL \ RET overhead of a certain function which is called only once"

    If it is only called once, is it really that much of an overhead?

    IF it is not called from elsewhere, why make it a separate function anyhow?

Reply
  • "I want to avoid the CALL \ RET overhead of a certain function which is called only once"

    If it is only called once, is it really that much of an overhead?

    IF it is not called from elsewhere, why make it a separate function anyhow?

Children