Sets the optimization level for the link time optimization feature.
is one of the following:
Minimum optimization for the performance of the compiled binary. Turns off most optimizations. When debugging is enabled, this option generates code that directly corresponds to the source code. Therefore, this might result in a significantly larger large image.
- Restricted optimization. When debugging is enabled, this option gives the best debug view for the trade-off between image size, performance, and debug.
- High optimization. When debugging is enabled, the debug view might be less
satisfactory because the mapping of object code to source code is not always
clear. The linker might perform optimizations that
cannot be described by debug information.
This is the default optimization level.
- Very high optimization. When debugging is enabled, this option typically gives a poor debug view. ARM recommends debugging at lower optimization levels.
- Enables all the optimizations from level
3including those performed with the
-ffp-mode=fastarmclang option. This level also performs other aggressive â€‹optimizations that might violate strict compliance with language standards.
- Maximum optimization. Specifically targets performance
optimization. Enables all the optimizations from level
fast, together with other aggressive optimizations.
CAUTION:This option is not guaranteed to be fully standards-compliant for all code cases.
- Code-size, build-time, and the debug view can each be adversely affected when using this option.
- ARM cannot guarantee that the best performance optimization is achieved in all code cases.
- Performs optimizations to reduce code size, balancing code size against code speed.
- Performs optimizations to minimize image size.
If you do not specify
O, the linker assumes