-finline-functions (-qinline)
Category
Pragma equivalent
None.
Purpose
Attempts to inline functions instead of generating calls to those functions, for improved performance.
Syntax
>>--- -finline-functions---------------------------------------><
.--- -qnoinline------------------. >>-+--- -qinline----+-------------+-+-------------------------->< | .-auto-. | '-=--+------+-'
Defaults
Enabled at -O2.
Usage
This option attempt to inline all appropriate functions for inlining, including those that are not declared inline. The compiler determines whether inlining a specific function can improve performance. That is, whether a function is appropriate for inlining is subject to two factors: limits on the number of inlined calls and the amount of code size increase as a result. Therefore, enabling inlining a function does not guarantee that function will be inlined.
Because inlining does not always improve runtime performance, you need to test the effects of this option on your code. Do not attempt to inline recursive or mutually recursive functions.
Predefined macros
None.
xlc -finline-functions myprogram.c