7.11 --autoinline, --no_autoinline

Enables and disables automatic inlining of functions.

The compiler automatically inlines functions at the higher optimization levels where it is sensible to do so. The -Ospace and -Otime options, together with some other factors such as function size, influence how the compiler automatically inlines functions.
Selecting -Otime, in combination with various other factors, increases the likelihood that functions are inlined.
In general, when automatic inlining is enabled, the compiler inlines any function that is sensible to inline. When automatic inlining is disabled, only functions marked as __inline are candidates for inlining.


Use these options to control the automatic inlining of functions at the highest optimization levels (-O2 and -O3).


For optimization levels -O0 and -O1, the default is --no_autoinline.
For optimization levels -O2 and -O3, the default is --autoinline.
Related concepts
3.32 Default compiler options that are affected by optimization level
Related reference
7.66 --forceinline
7.87 --inline, --no_inline
7.120 -Onum
7.124 -Ospace
7.125 -Otime
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.