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

Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
1-12
TNS/E Native C and C++ Language System
Fault-tolerant programs
You can write fault-tolerant process pairs using the active backup programming
model.
TNS/E Native C and C++ Language System
The TNS/E native C and C++ language system generates native C and C++ programs
for the Guardian and OSS environments.
Components of this language system:
TNS/E Native C Compiler on page 1-12
TNS/E Native C++ Compiler on page 1-13
TNS/E Native C Run-Time Library on page 1-13
C++ Run-Time Library and Standard C++ Library on page 1-14
TNS/E Native Linker (eld Utility) on page 1-15
Optional components:
°
Native Inspect Symbolic Debugger on page 1-15
°
Visual Inspect Symbolic Debugger on page 1-15
°
NonStop SQL/MP Compiler and NonStop SQL/MX Compiler on page 1-16
°
TNS/E Native C and C++ Migration Tool on page 1-17
TNS/E Native C Compiler
The TNS/E native C compiler accepts C language source files that comply with either
the ISO/ANSI C Standard (ISO/IEC 9899:1990, Programming Languages–C or ANSI C
X3.159-1989, Programming Language C) or Common-Usage C (sometimes called
Kernighan and Ritchie C, or K&R C). The native C compiler also accepts HP NonStop
extensions that support the native architecture.
The TNS/E native C compiler can be run in the Guardian and OSS environments, and
on a PC using the HP Enterprise Toolkit, as follows:
In the Guardian environment, use the CCOMP command to run the TNS/E native
compiler. The CCOMP command-line syntax is similar to that of the NMC
command for running the TNS/R C compiler. For syntax information, see Compiling
a C Module on page 14-4.
In the OSS environment, use the native c89 utility to run the TNS/E native C
compiler. The native c89 utility syntax is the same for the TNS/E and TNS/R
compilers. For syntax information, see the c89(1) reference page either online or
in the Open System Services Shell and Utilities Reference Manual. The Open
System Services Programmer’s Guide provides guidance on the use of C in the
OSS environment.
On a PC running the Windows operating system, use the HP Enterprise Toolkit—
NonStop Edition (ETK) to compile C code. You can also use the command-line
cross compiler (named c89) outside the ETK. For more information, see the ETK