Compiler options

The following options are useful when you compile a program that will be packaged as a product:

TARGET
If your product will run on multiple releases of z/OS®, use the TARGET compiler option to specify the lowest level of the z/OS Language Environment® that you will support. The compiler will notify you if your application uses any features that are not supported at this level.

The target must be the same release as the compiler or a previous release. If the target is a previous release, you must link with the system library of the target system. You cannot link with libraries from the current release and run the resulting executable with a previous release of z/OS Language Environment.

CSECT
Use the CSECT compiler option or #pragma csect to assign names to CSECTs. This provides you with more control and flexibility when you service the product.

For more information about these compiler options, see z/OS XL C/C++ User's Guide.