cancel
Showing results for 
Search instead for 
Did you mean: 

pragma optimize=speed high with noops

coolname
Associate

I wanted to understand the behavior of software that I see.

There is a macro that has a few no-ops

There is #pragma optimize=speed high in the code

Is my understanding correct that #pragma is enforced after preprocessor expands the macros?

So I think because of the optimization setting, those no-ops will be optimized out, am I right?

 

1 REPLY 1
coolname
Associate

no_op done with __iar_builtin_no_operation()