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
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.
- 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++. - 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.
- 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.