To generate a reentrant C object module, follow these steps:
- For C, if your program contains external data, compile your source
files using the RENT compiler option. For C++, compile
your source files; by default the compiler builds reentrant programs
using constructed reentrancy. See z/OS XL C/C++ User's Guide for
more information.
- To produce an executable program:
- If the target data set is a PDSE or HFS, use the binder to combine
all of the input into an executable program
- If the target data set is a PDS, use the prelinker to combine
all of the input before passing it as input to the binder. You cannot
run an object module through the prelinker more than once. Also, you
must link-edit using the same platform you used for the prelink step.
- To get the greatest benefit from reentrancy, install your executable
program in one of the locations listed in Installing a reentrant load module.