You copied the Doc URL to your clipboard.


Enables link time optimization, outputting bitcode files for link time optimization rather than ELF object files.

The primary use for bitcode files is for link time optimization. See Optimizing across modules with link time optimization in the Software Development Guide for more information about link time optimization.


ARM® Compiler does not support link time optimization on 32-bit Red Hat Enterprise Linux platforms.


The compiler creates one bitcode file for each source file, with a .o file extension replacing the file extension on the input source file.

The -flto option passes the --lto option to armlink to enable link time optimization, unless the -c option is specified.

Related reference