Binding C++
When binding the C++ object modules
shown in Figure 1, the binder generates the following definition sidedeck.
IMPORT CODE ,TRIANGLE, getarea__8triangleFv
IMPORT CODE ,TRIANGLE, getperim__8triangleFv
IMPORT CODE ,TRIANGLE, __ct__8triangleFv
You can edit the definition sidedeck to remove any
functions and variables that you do not want to export. In the preceding example, if you do not want
to expose getperim(), remove the control statement IMPORT CODE ,TRIANGLE,
getperim__8triangleFv from the definition sidedeck. Note:
- Removing functions and variables from the definition sidedeck does not minimize the performance impact caused by specifying the EXPORTALL compiler option.
- Side-decks are created without newline characters, therefore you cannot edit them with an editor
that expects newline characters, such as
viin z/OS UNIX.
The definition sidedeck 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 about the
CXXFILT utility, see Filter utility in z/OS XL C/C++ User's Guide.