force inlining
Hi all,
I have a question regarding inlining of functions.
To fulfill some hw timing requirements the usage of "nop" is required. Additionally the actual MISRA rules have to be taken into account. Therefor the assembler operations have to be encapsulated.
I tried to use an assembler function consisting of a single "nop" in a .sx file and a header file containing
void utilities_
According to the documentation this should be sufficient to insert the single nop instead of the function call "utilities_nop();".
But with the gcc compiler 4.7 Q42012 a branch operation is generated. The inline keyword is also not sufficient nor is the compiler flag for activating inlining of functions.
Did I miss something or is there another option to tell the compiler to inline the function?
Best regards,
Thomas
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Preud'homme
- Solved:
- Last query:
- Last reply: