04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

Note<br />

If you compile with --lower_rwpi, then the static initialization is done at runtime by the<br />

C++ constructor mechanism, even for C. This enables these static initializations to work<br />

with RWPI code.<br />

See also<br />

• --apcs=qualifer...qualifier on page 2-4<br />

• --lower_ropi, --no_lower_ropi on page 2-87<br />

• Position independence qualifiers on page 2-24 in the Compiler User Guide.<br />

2.1.108 --ltcg<br />

This option instructs the compiler to create objects in an intermediate format so that<br />

link-time code generation optimizations can be performed. The optimizations applied<br />

include cross-module inlining to improve performance, and sharing of base addresses<br />

to reduce code size.<br />

Note<br />

This option might significantly increase link time and memory requirements. For large<br />

applications it is recommended that you do the code generation in partial link steps with<br />

a subset of the objects.<br />

Example<br />

The following example shows how to use the --ltcg option.<br />

armcc -c --ltcg file1.c<br />

armcc -c --ltcg file2.c<br />

armlink --ltcg file1.o file2.o -o prog.axf<br />

See also<br />

• --multifile, --no_multifile on page 2-92<br />

• -Onum on page 2-96<br />

• --ltcg on page 2-59 in the Linker Reference Guide.<br />

2.1.109 -M<br />

This option instructs the compiler to produce a list of makefile dependency lines<br />

suitable for use by a make utility.<br />

2-88 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!