EXECOPS | NOEXECOPS

Category

Object code control

Pragma equivalent

#pragma runopts (EXECOPS)

Purpose

Allows you to specify runtime options on the invocation line for the generated executable.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-EXEC---.   
>>-+-NOEXEC-+--------------------------------------------------><

Defaults

EXECOPS

Usage

When the EXECOPS option is in effect, you can control whether runtime options will be recognized at run time without changing your source code.

If the EXECOPS option is specified on both the command line and in a #pragma runopts directive, the option on the command line takes precedence.

IPA effects

If you specify EXECOPS for any compilation unit in the IPA compile step, the compiler generates information for the IPA link step. This option also affects the regular object module if you request one by specifying the IPA(OBJECT) option.

If you specify the EXECOPS option for the IPA compile step, you do not need to specify it again on the IPA link step. The IPA link step uses the information generated for the compilation unit that contains the main() function. If it cannot find a compilation unit that contains main(), it uses information generated for the first compilation unit that it finds.

If you specify this option on both the IPA Compile and the IPA link steps, the setting on the IPA link step overrides the setting on the IPA compile step. This situation occurs whether you use EXECOPS and NOEXECOPS as compiler options, or specify them by using the #pragma runopts directive on the IPA compile step.

Predefined macros

None.