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.

CCSTUDIO: How do I disable optimizations around a specific function?

Part Number: CCSTUDIO

Compiler is optimizing out some `assert` wrapped function calls.  This is not production code; it is test code.  How do I disable optimization around a section of code?

For example, gcc supports custom optimization for a section of code using pragmas:

#pragma GCC push_options
#pragma GCC optimize ("O0")

your code

#pragma GCC pop_options

Is there something similar available in Code Composer Studio for MSP430?