5.7.7.27 Inline-small-functions Options
The -finline-small-functions
option integrates the body of functions into its
callers when a function's code size is expected to be smaller than the size of the
call/return sequence that would otherwise be required to call that function. The
compiler heuristically decides which functions are simple enough to integrate in this
way so as to reduce the size of the program. This inlining applies to all functions,
even those not declared inline
. Automatically enabled at optimization
levels -O2
, -O3
, and -Os
.
The -fno-inline-small-functions
form of this option suppresses this
optimization.