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.

F28M35H52C: How to prevent C2000 compiler to optipizme a function from C code

Part Number: F28M35H52C

Hi,

In my C28 application, I would like to disable optimization only for a specific function or code block. And I would like to specify that directly inside the C code.

With gcc, I can do that with :

__attribute__((optimize("O0")))

static void unoptimizedFunction()

{

...

}

Is is possible to do the same with C2000 compiler ?

Thanks a lot!