EXPORTALL | NOEXPORTALL

Category

Object code control

Pragma equivalent

#pragma export

Purpose

Exports all externally defined functions and variables in the compilation unit so that a DLL application can use them.

Syntax

Read syntax diagramSkip visual syntax diagramNOEXPOEXPO

Defaults

NOEXPORTALL

Usage

Use the EXPORTALL option if you are creating a DLL and want to export all external functions and variables defined in the DLL. You may not export the main() function.

Notes:
  1. If you only want to export some of the external functions and variables in the DLL, use #pragma export, or the _Export keyword for C++.
  2. For C, you must use the LONGNAME and RENT options with the EXPORTALL option. If you use the EXPORTALL option without RENT and LONGNAME, the z/OS® XL C compiler turns them on.
  3. Unused extern inline functions will not be exported when the EXPORTALL option is specified.

The usage status of this option is inserted in the object file to aid you in diagnosing a problem with your program.

IPA effects

The IPA compile step generates information for the IPA link step. The EXPORTALL option also affects the regular object module if you request one by specifying the IPA(OBJECT) option.

The IPA link step accepts the EXPORTALL option, but ignores it.

If you use the EXPORTALL option during the IPA compile step, you severely limit IPA optimization. Refer to DLL | NODLL for more information about the effects of this option on IPA processing.

Predefined macros

None.

Related information

For more information on related compiler options, see: