Using cataloged procedures for z/OS® XL C++

You can use one of the following cataloged procedures that IBM® supplies. Each procedure includes a compilation step to compile your program.
CBCC
Compile a 31-bit or 64-bit program
CBCCB
Compile and bind a 31-bit non-XPLINK program
CBCXCB
Compile and bind a 31-bit XPLINK C++ program
CBCQCB
Compile and bind a 64-bit C++ program
CBCCL
Compile, prelink, and link for a 31-bit non-XPLINK program
CBCCBG
Compile, bind, and run a 31-bit non-XPLINK program
CBCXCBG
Compile, bind, and run a 31-bit XPLINK C++ program
CBCQCBG
Compile, bind, and run a 64-bit C++ program
CBCCLG
Compile, prelink, link, and run a 31-bit non-XPLINK program

See Cataloged procedures and REXX EXECs for more information on cataloged procedures.

IPA considerations

The CBCC procedure should be used for the IPA compile step. Only the CBCI and CBCXI procedures apply to the IPA link step. For information on the CBCI and CBCXI procedures, see Using the IPA link step with z/OS XL C/C++ programs.

To run the IPA compile step, use the CBCC procedure, and ensure that you specify the IPA(NOLINK) or IPA compiler option. Note that for C you must also specify the LONGNAME compiler option or the #pragma longname directive. For C++, you don't have to do this since C++ always uses LONGNAME. You should not specify the NOLONGNAME option.

To create an IPA-optimized object module, you must run the IPA compile step for each source file in your program, and the IPA link step once for the entire program. Once you have successfully created an IPA-optimized object module, you must bind it to create the final executable.

For further information on IPA, see Using the IPA link step with z/OS XL C/C++ programs.