This option instructs the compiler to create objects in an
intermediate format so that Link-Time Code Generation (LTCG)
optimizations can be performed. The optimizations applied include cross-module
inlining to improve performance, and sharing of base addresses to
reduce code size.
Note
This option might significantly
increase link time and memory requirements. For large applications
it is recommended that you do the code generation in partial link
steps with a subset of the objects.
The LTCG feature is deprecated. As an alternative
ARM recommends you use the --multifile option.
Example
The following example shows how to use the --ltcg option.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.