Compiler optimization levels and the debug view
|
|||
Home > Compiler Coding Practices > Compiler optimization levels and the debug view |
The precise optimizations performed by the compiler depend both on the level of optimization chosen, and whether you are optimizing for performance or code size.
The compiler supports the following optimization levels:
-
Minimum optimization. The compiler performs simple optimizations that do not impair the debug view.
When debugging is enabled, this option gives the best possible debug view.
-
Restricted optimization.
When debugging is enabled, this option gives a generally satisfactor
-O0
-O1