You copied the Doc URL to your clipboard.

-flto [ALPHA]

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


This topic describes an [ALPHA] feature.

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.


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