pragma optimize=speed high with noops
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-14 11:16 AM
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?
Labels:
- Labels:
-
STM32Cube MCU Packages
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-14 11:28 AM
no_op done with __iar_builtin_no_operation()
