ILE C/C++ Compiler Reference


inline

C compiler only
Read syntax diagramSkip visual syntax diagraminline syntax
 
>>-#--pragma--inline--(--function_name--)----------------------><
 

Description

The #pragma inline directive specifies that function_name is to be inlined. The pragma can appear anywhere in the source, but must be at file scope. The pragma has no effect if the INLINE(*ON) compiler option parameter is not specified. If #pragma inline is specified for a function, the inliner will force the function specified to be inlined on every call. The function will be inlined in both selective (*NOAUTO) and automatic (*AUTO) INLINE mode.

Inlining replaces function calls with the actual code of the function. It reduces function call overhead, and exposes more code to the optimizer, allowing more opportunities for optimization.

Notes® on Usage

See the "Function Call Performance" in the IBM® Rational® Developer for i: ILE C/C++ Programmer's Guide for more information about function inlining.


[ Top of Page | Previous Page | Next Page | Contents | Index ]