Skip to main content
Visitor II
November 14, 2023
Question

pragma optimize=speed high with noops

  • November 14, 2023
  • 1 reply
  • 1202 views

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?

 

    This topic has been closed for replies.

    1 reply

    coolnameAuthor
    Visitor II
    November 14, 2023

    no_op done with __iar_builtin_no_operation()