C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
17-1
17
Compiling and Linking TNS/E Native
C and C++ Programs
Selecting a Development Platform on page 17-2
Specifying Header Files on page 17-3
Compiling and Linking Floating-Point Programs on page 17-4
°
Using Compiler Pragmas IEEE_Float and Tandem_Float on page 17-5
°
Using Link Options to Specify Floating-Point Format on page 17-6
°
Link-Time Consistency Checking on page 17-6
°
Run-Time Consistency Checking on page 17-7
°
Linking Mixed-Language Programs on page 17-8
Working in the Guardian Environment on page 17-9
°
Compiling a Module on page 17-9
°
Linking a TNS/E Module on page 17-12
°
CCPLMAIN File on page 17-12
°
Dynamic-Link Libraries (DLLs) on page 17-13
°
Shared Run-Time Libraries and Dynamic-Link Libraries (DLLs) on
page 17-13
°
Determining Which DLLs are Required on page 17-14
The TNS/E native C and C++ compilers take as input a module (a translation unit) and
generate an object file or linkfile. A module is defined as a source file with all the
headers and source files it includes, except for any source lines skipped as the result
of conditional preprocessor directives.
The eld utility is the TNS/E native linker that links PIC (Position-Independent Code)
linkfile
s to produce PIC loadfiles.
The SQL compiler processes executable files and generates code for embedded SQL
statements.
The native c89 utility controls the TNS/E native C and C++ compilation system in the
Open System Services (OSS) environment. Note that the c89 utility on NonStop NS-
series systems can generate TNS/R code for linking by the TNS/R native linker utility
(not the eld utility) when the -Wtarget=TNS/R flag is used; discussions of OSS c89 in
Section 16, Compiling and Linking TNS/R Native C and C++ Programs therefore apply
to NonStop NS-series users when that flag is specified.
For information on how to compile and link programs in the OSS environment, see the
c89(1) reference page online or in the Open System Services Shell and Utilities
Reference Manual.