Binding under z/OS UNIX

The c89 and xlc utilities are the interface to the compiler and the binder for z/OS® UNIX System Services C/C++ applications. You can use all supported command names, for example, c89, c++, and xlc, to compile, to compile and bind a program in one step, or to bind application object modules after compilation.

The default, for these utilities, is to invoke the binder alone, without first invoking the prelinker. That is, since the OS/390® V2R4 Language Environment® release and DFSMS 1.4, if the output file (-o executable) is not a PDS member, then the binder will be invoked. To modify your environment to run the prelinker, refer to the description of the prefix_STEPS environment variable in Environment variables.

Typically, you invoke the c89 and c++ utilities from the z/OS shell. For more information on these utilities, see c89 — Compiler invocation using host environment variables or the z/OS UNIX System Services Command Reference.

To bind your XPLINK module, specify -Wl,xplink on the c89/c++ command.