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

Compiling, Binding, and Accelerating TNS C
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
14-8
Binding a C Module
SELECT SEARCH model-dependent-library-file
directs Binder to search the specified model-dependent library file when resolving
external references. You choose the model-dependent library file depending on the
execution environment, the data model, and the memory model of your program.
For details on selecting the correct model-dependent library file, see Specifying
Library Files on page 14-8.
The model-dependent-library-file file name must be fully qualified. The
files are located in $SYSTEM.SYSTEM by default.
SELECT RUNNABLE OBJECT ON
directs Binder to create an executable object file (a program file) when it builds the
object file.
SELECT LIST * OFF
disables generation of load maps and cross-reference listings.
SET HEAP value PAGES
specifies the heap size of the program.
BUILD program-file
directs Binder to build a program file using the files and options specified in the
preceding commands. program-file is the name of the program file that Binder
builds.
Specifying Library Files
To resolve references to external routines, Binder uses different model-dependent
library files that depend on your program’s execution environment, data model, and
memory model. Table 14-2, Model-Dependent Library Files, shows you how to select
the correct library files for your programs.
Table 14-2. Model-Dependent Library Files
Execution Environment
Data
Model
Memory
Model Library Files
Guardian module 16-bit Small CSMALL
Guardian module 16-bit Large CLARGE
Guardian module 32-bit Large CWIDE
Guardian module using fault-tolerant
programming extensions
32-bit Large CWIDE and
CNONSTOP
G-series OSS TNS module 32-bit Large COSS