Generating a reentrant program executable for C or C++
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 (and LP64) compiler option. For C++, compile your source files with LP64; 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, use the binder to combine all of the input into an AMODE 64 executable program.
- To get the greatest benefit from reentrancy, install your executable program in one of the locations listed in Installing a reentrant load module.