29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

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.

Getting started with <strong>the</strong> <strong>Compiler</strong><br />

3.20 Effect of --multifile on compilation build time<br />

When compiling with --multifile, <strong>the</strong> compiler might generate code with additional<br />

optimizations by compiling across several source files to produce a single object file. These<br />

additional cross-source optimizations can increase compilation time.<br />

Conversely, if <strong>the</strong>re is little additional optimization to apply, and only small amounts of code to<br />

check <strong>for</strong> possible optimizations, <strong>the</strong>n using --multifile to generate a single object file instead<br />

of several might reduce compilation time as a result of time recovered from creating (opening<br />

and closing) multiple object files.<br />

Note<br />

• In RVCT 4.0, if you compile with -O3, --multifile is enabled by default.<br />

• In <strong>ARM</strong> <strong>Compiler</strong> 4.1 and later, --multifile is disabled by default, regardless of <strong>the</strong><br />

optimization level.<br />

3.20.1 See also<br />

Tasks<br />

• How to minimize compilation build time on page 3-26.<br />

Concepts<br />

Introducing <strong>the</strong> <strong>ARM</strong> <strong>Compiler</strong> <strong>toolchain</strong>:<br />

• Licensed features of <strong>the</strong> <strong>toolchain</strong> on page 2-8<br />

Reference<br />

<strong>Compiler</strong> Reference:<br />

• --multifile, --no_multifile on page 3-67<br />

• -Onum on page 3-71.<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 3-29<br />

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!