Lets you specify the maximum size of a function to be inlined.
None
IA-32 architecture, Intel® 64 architecture, IA-64 architecture
Linux and Mac OS: | -finline-limit=n |
Windows: | None |
n | Must be an integer greater than or equal to zero. It is the maximum number of lines the function can have to be considered for inlining. |
OFF | The compiler uses default heuristics when inlining functions. |
This option lets you specify the maximum size of a function to be inlined. The compiler inlines smaller functions, but this option lets you inline large functions. For example, to indicate a large function, you could specify 100 or 1000 for n.
Note that parts of functions cannot be inlined, only whole functions.
This option is a modification of the -finline-functions option, whose behavior occurs by default.
None
finline-functions compiler option