In the IAR toolchain I'm able to specify the optimization level of a single funciton within a module by setting the optimization level using "#pragma optimize=<level>". Is there a way to do the same thing in CCS?
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.
In the IAR toolchain I'm able to specify the optimization level of a single funciton within a module by setting the optimization level using "#pragma optimize=<level>". Is there a way to do the same thing in CCS?
I finally found the compiler reference document and I think I've found the solution.
#pragma FUNCTION_OPTIONS( <functionName>,"--opt_level=0" )
In the assembly listing it says that the optimization level for the function is -O0. Can someone with experience please verify?