When compiling with --multifile, the compiler
might generate code with additional optimizations by compiling across
several source files to produce a single object file. These additional
cross-source optimizations can increase compilation time.
Conversely, if there is little additional optimization to
apply, and only small amounts of code to check for possible optimizations,
then using --multifile to generate a single object
file instead of several might reduce compilation time as a result
of time recovered from creating (opening and closing) multiple object
files.
Note
In RVCT 4.0, if you compile
with -O3, --multifile is enabled
by default.
In ARM Compiler 4.1 and later, --multifile is
disabled by default, regardless of the optimization level.
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.