This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use #Pragma to change the specific file optimization level in IAR

Static clustering for a specific file is creating issue. i want to exclude that specific file from optimizing to high level to no optimization.

#pragma optimize= none :-Tried before the function definition but it is not giving the same effect what excluding this file from optimization.

So expecting suggestion how to exclude the complete file from optimization using pragma.