C/C++ Programmer's Guide (G06.25+)
Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
1-4
Exception Handling Is Not Supported
•
Mixed language programming using interface declarations
•
Completion codes for error detection
Exception Handling Is Not Supported
Exception handling is described in The Annotated C++ Reference Manual. However,
exception handling is not implemented in either USL Cfront or HP Cfront.
Compilation Steps for C++ Code
To compile C++ code in the Guardian and OSS environments, use the following steps:
1. Run the Cprep preprocessor to provide macro and file expansion. The C
preprocessor produces C++ source code for input to Cfront.
2. Run the Cfront translator to translate the C++ source code and produce C source
code for input to the C compiler.
3. Run the C compiler to produce C object code that, when bound with the C++ run-
time library and the C run-time library, produces an executable C++ program.
4. You can optionally process the executable C++ program with the Accelerator or
OCA.
In the Guardian environment, you can use a TACL macro to run the compilation
system components. In the OSS environment, the G-series TNS c89 utility
(/nonnative/bin/c89) provides an interface to the C++ compilation system
components. For details, see Section 15, Compiling, Binding, and Accelerating TNS
C++ Programs.
TNS/R Native C and C++ Language System
The TNS/R native C and C++ language system generates native C and C++ programs
for the Guardian and OSS environments.
Components of this language system:
•
TNS/R Native C Compiler on page 1-5
•
TNS/R Native C++ Compiler on page 1-5
•
TNS/R Native C Run-Time Library on page 1-6
•
C++ Run-Time Library and Standard C++ Library on page 1-6
•
TNS/R Native Linkers (nld and ld Utilities) on page 1-7
•
Optional components:
°
Inspect Symbolic Debugger on page 1-8
°
Visual Inspect Symbolic Debugger on page 1-8
°
NonStop SQL/MP Compiler and NonStop SQL/MX Compiler on page 1-9
°
TNS/R Native C and C++ Migration Tool on page 1-10