OFFSET | NOOFFSET

Category

Listings, messages and compiler information

Pragma equivalent

None.

Purpose

Lists offset addresses relative to entry points of functions.

When the OFFSET compiler option is in effect, the compiler displays the offset addresses relative to the entry point or start of each function in the pseudo assembly listing generated by the LIST option. The OFFSET compiler option also prints the CSECT Offset field in the pseudo assembly listing for a function, which shows the offset of the function in the CSECT.

When the NOOFFSET compiler option is in effect, the compiler displays the offset addresses relative to the beginning of the generated code in the pseudo assembly listing generated by the LIST option and does not display the entry point.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-NOOF-.   
>>-+-OF---+----------------------------------------------------><

Defaults

NOOFFSET

In the z/OS® UNIX System Services environment, this option is turned on by specifying -V when using the c89, cc or c++ commands.

Usage

If you use the OFFSET option, you must also specify the LIST option to generate the pseudo assembly listing. If you specify the OFFSET option but omit the LIST option, the compiler generates a warning message, and does not produce a pseudo assembly listing.

IPA effects

If you specify the IPA(OBJECT) option (that is, if you request code generation), the OFFSET option has the same effect on the IPA compile step as it does on a regular compilation.

If you specify the LIST option during IPA Link, the IPA Link listing will be affected (in the same way as a regular compilation) by the OFFSET option setting in effect at that time.

The OFFSET option that you specified on the IPA compile step has no effect on the IPA link step.

Predefined macros

None.

Related information

For more information on related compiler options, see