C/C++ Programmer's Guide (G06.25+)
Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
15-14
Working in the Guardian Environment
Specify LIBLA if your program uses the 16-bit data model. For the 16-bit data
model, the size of the type int is 16 bits.
SELECT SEARCH data-model-file
directs Binder to search the specified data-model file when resolving external
references.
Use CWIDE for the data-model-file to specify the 32-bit data model.
Use CLARGE for the data-model-file to specify the 16-bit data model.
The data-model-file file name must be fully qualified. CWIDE and CLARGE
are in $SYSTEM.SYSTEM by default.
SET HEAP value PAGES
specifies the heap size of the program.
BUILD program-file
directs Binder to build an executable object file using the files and options specified
in the preceding commands. The program-file is the name of the executable
object file that Binder builds.
For more information regarding Binder and its commands, refer to the Binder Manual.
Requirements for Binding Modules
The following requirements apply when you are binding two or more compiled modules
to create a single executable C++ object file:
•
Each of the C++ modules must be based on the same data model. If any module
has been compiled with the NOWIDE pragma specified, then all modules must be
compiled with the NOWIDE pragma specified. Likewise, if any modules have been
compiled with the WIDE pragma specified, then all modules must be compiled with
the WIDE pragma specified.
•
If you bind C++ modules with C modules, then each of the modules must be based
on the same memory model and the same data model.