COBOL - Opções de compilação - INLINE


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

Opções de compilação - INLINE

The INLINE compiler option controls whether the inlining of procedures (paragraphs or sections) referenced by PERFORM statements in the source program is allowed.

Default is: INLINE

Abbreviations are: INL | NOINL

INLINE
Specifying INLINE causes the compiler to allow the inlining of procedures referenced by PERFORM statements in the source program when OPTIMIZE(1) or OPTIMIZE(2) is in effect.
Whether to inline procedures in a specific PERFORM block or not is determined by the compiler and it can be overridden by using the >>INLINE OFF directive.

NOINLINE
Specifying NOINLINE causes no inlining1 of procedures referenced by PERFORM statements, no matter which optimization level setting is in effect.
It cannot be overridden by using the >>INLINE ON directive.
Note:

1. The word inlining here implies that the compiler might choose to replace the PERFORM of a procedure (paragraph or section) with a copy of that procedure's code. By inserting the procedure code at the location of the PERFORM, the compiler saves the overhead of branching logic to and from the procedure.



© Copyright IBM Corp.