|Home > armlink Command-line Options > --lto_level|
Sets the optimization level for the link time optimization feature.
is one of the following:
Restricted optimization. When debugging is enabled, this option selects a good compromise between image size, performance, and quality of debug view.
-O0 for the best trade-off
between debug view, code size, and performance.
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 the debug information cannot describe.
This optimization is the default optimization level.
3including those optimizations that are performed with the
-ffp-mode=fastarmclang option. This level also performs other aggressive optimizations that might violate strict compliance with language standards.
fast, together with other aggressive optimizations.
If you do not specify
O, the linker assumes
O2. This level is different from the default
armclang optimization level,
-O0. Arm recommends that you always specify a
--lto_level=Olevel to match the optimzation level that is used with
armclang, instead of relying on the default.