4.23 Automatic function inlining and multifile compilation

If you are compiling with the --multifile option, the compiler can perform automatic inlining for calls to functions that are defined in other translation units.

In RVCT 4.0 the --multifile option is enabled by default at -O3 level.
In ARM Compiler 4.1 and later the --multifile option is disabled by default, regardless of the optimization level.
For --multifile, both translation units must be compiled in the same invocation of the compiler.
Related concepts
4.19 Inline functions
4.20 Compiler decisions on function inlining
4.21 Automatic function inlining and static functions
4.22 Inline functions and removal of unused out-of-line functions at link time
4.25 Compiler modes and inline functions
4.26 Inline functions in C++ and C90 mode
4.27 Inline functions in C99 mode
4.28 Inline functions and debugging
Related reference
4.24 Restriction on overriding compiler decisions about function inlining
7.11 --autoinline, --no_autoinline
7.80 --inline, --no_inline
7.107 --multifile, --no_multifile
7.111 -Onum
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.