ILE C/C++ Programmer's Guide
Binder language is based on the exports available from modules that are
bound into service programs. A binder language source file must contain
the following entries:
- The Start Program Export (STRPGMEXP) command identifies the beginning of
the list of exports from the service program.
- Export Symbol (EXPORT) commands identify each a symbol name available to
be exported from the service program.
- The End Program Export (ENDPGMEXP) command identifies the end of the list
of exports from the service program.
The following figure shows the structure of a binder language source
file:
Figure 11. Example of a Binder Language Source File
STRPGEXP PGMLEVEL(*CURRENT)
EXPORT SYMBOL("mangled_procedure_name_a")
EXPORT SYMBOL("mangled_procedure_name_b")
...
...
EXPORT SYMBOL("mangled_procedure_name_x")
ENDPGMEXP
|
- Note:
- You must specify the mangled name of each symbol on the EXPORT command,
because the binder looks for the mangled names of exports when it tries to
resolve import requests from other modules.
After all the modules to be bound into a service program have been
created, you can create the binder language source file by using either of the
following methods:
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.