z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Binding C++

z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode
SA38-0689-00

When binding the C++ object modules shown in Figure 1, the binder generates the following definition side-deck.
IMPORT CODE64 ,TRIANGLE, getarea__8triangleFv
IMPORT CODE64 ,TRIANGLE, getperim__8triangleFv
IMPORT CODE64 ,TRIANGLE, __ct__8triangleFv
You can edit the definition side-deck to remove any functions and variables that you do not want to export. In the above example, if you do not want to expose getperim(), remove the control statement IMPORT CODE64 ,TRIANGLE, getperim__8triangleFv from the definition side-deck.
Note:
  1. Removing functions and variables from the definition side-deck does not minimize the performance impact caused by specifying the EXPORTALL complier option.
  2. Side-decks are created without newline characters, therefore you cannot edit them with an editor that expects newline characters, such as vi in z/OS UNIX.

The definition side-deck contains mangled names, such as getarea__8triangleFv. To find the original function or variable name in your source module, review the compiler listing created or use the CXXFILT utility. This will permit you to see both the mangled and demangled names. For more information on the CXXFILT utility, and on binding C++, see z/OS XL C/C++ User's Guide.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014