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 />

Default<br />

The default is --no_multifile, unless the option -O3 is specified.<br />

If the option -O3 is specified, then the default is --multifile.<br />

Usage<br />

When --multifile is selected, the compiler might be able to perform additional<br />

optimizations by compiling across several source files.<br />

There is no limit to the number of source files that can be specified on the command<br />

line, but ten files is a practical limit, because --multifile requires large amounts of<br />

memory while compiling. For the best optimization results, choose small groups of<br />

functionally related source files.<br />

Example<br />

armcc -c --multifile test1.c ... testn.c -o test.o<br />

The resulting object file is named test.o, instead of test1.c, and empty object files<br />

test2.o to testn.o are created for each source file test1.c ... testn.c specified on the<br />

command line.<br />

See also<br />

• -c on page 2-21<br />

• --default_extension=ext on page 2-38<br />

• --ltcg on page 2-88<br />

• -o filename on page 2-95<br />

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

• --whole_program on page 2-136.<br />

2.1.116 --multiply_latency=cycles<br />

This option tells the compiler the number of cycles used by the hardware multiplier.<br />

Syntax<br />

--multiply_latency=cycles<br />

Where cycles is the number of cycles used.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!