This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Hi expert,
My customer find some compiler optimization may influence some of the functions they are doing. Do we offer any #pragma or other method to exculde some function call in C from being optimized?
Thanks
Sheldon
You can use #pragma FUNCTION_OPTIONS to lower the level of optimization for one function. You cannot use it to eliminate all optimization. Please search for it in the C28x compiler manual.
If you build with Code Composer Studio, here is another method to consider ... Move the function into a file of its own, then use the file specific options feature to set the compiler option --opt_level=off.
Thanks and regards,
-George