6.6.6.7.2 -finline-limit=n
By default, the compiler limits the size of functions that can be inlined. This flag allows the
control of this limit for functions that are explicitly marked as inline (i.e., marked
with the inline
keyword). n
is the size of functions
that can be inlined in number of pseudo instructions (not counting parameter handling).
The default value of n
is 10000. Increasing this value can result in
more inlined code at the cost of compilation time and memory consumption.
Decreasing usually makes the compilation faster and less code will be inlined (which presumably means slower programs). This option is particularly useful for programs that use inlining.
Note: Pseudo instruction represents, in this
particular context, an abstract measurement of function’s size. In no way does it
represent a count of assembly instructions and as such, its exact meaning might change
from one release of the compiler to an another.