C/C++ Programmer's Guide (G06.25+)

Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
15-13
Working in the Guardian Environment
Binder Commands
After starting Binder, you enter Binder commands to combine your compiled modules
with the TNS C++ run-time library object files and with the TNS C run-time library
object files to produce an executable C++ TNS object file. The Binder commands you
can use are shown in the following diagram.
SELECT RUNNABLE OBJECT ON
directs Binder to create an executable object file (a program file) when it builds the
object file.
SELECT CHECK PARAMETER OFF
disables checking of parameter number, type, and mode (value or reference) and
of function return type across code blocks. If you do not disable these checks,
Binder might generate several extraneous warning messages.
SET INSPECT ON
specifies that the currently defined symbolic debugging program, rather than the
default debugging program, is chosen for debugging when you run the object file.
ADD * FROM main-object-file
adds the object file of your program's main module. This main module is the one
that contains the definition of the function main().
ADD * FROM object-file
adds the object file of one of your program's other modules. You must repeat this
command for each of your modules.
SELECT SEARCH C++-library-file
directs Binder to search the appropriate C++ run-time library file when resolving
external references.
Specify LIBCA if your program uses the 32-bit data model. For the 32-bit data
model, the size of the type int is 32 bits.
SELECT RUNNABLE OBJECT ON
SELECT CHECK PARAMETER OFF
SET INSPECT ON
ADD * FROM main-object-file
ADD * FROM object-file
SELECT SEARCH C++-library-file
SELECT SEARCH data-model-file
SET HEAP value PAGES
BUILD program-file