-finline-functions (-qinline)

Pragma equivalent

None.

Purpose

Attempts to inline functions instead of generating calls to those functions, for improved performance.

Syntax

Read syntax diagramSkip visual syntax diagram
>>--- -finline-functions---------------------------------------><

Read syntax diagramSkip visual syntax diagram
   .--- -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.

To compile myprogram.c so that the functions that are appropriate for inlining are inlined, use the following command:
xlc -finline-functions myprogram.c 


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us