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

Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
15-15
Working in the G-Series OSS Environment
Working in the G-Series OSS Environment
The TNS c89 utility enables you to compile TNS C++ programs in the Open System
Services (OSS) environment. The c89 utility is XPG4 compliant. This section gives an
overview of the standard file operands and flags, lists the HP extensions that are
applicable to TNS C++, and gives some examples.
The TNS c89 utility is located in the /nonnative/bin directory on D40 and later
software releases. By default, the native c89 utility is run. You must set
/nonnative/bin at the start of your PATH environment variable to get the TNS c89
utility instead of the native c89 utility.
For more information, refer to the TNS c89 online reference page. To view this
reference page, enter:
man -M /nonnative/usr/share/man c89
The c89(1) reference page in D40 and later versions of the Open System Services
Shell and Utilities Reference Manual describes the native c89 utility.
The TNS c89 utility provides a simple interface to the components of the C++
compilation system. This compilation system conceptually consists of:
Cprep
Cfront
C compiler
Binder
Accelerator, an optional program component
You control the actions performed by TNS c89 with file operands and flags. When the
file operand is a C++ source file, TNS c89 invokes Cprep, Cfront, and the C compiler
to process the file. The preprocessor symbol __cplusplus is automatically defined in
this case. A file operand is perceived by TNS c89 as being a C++ source file when the
-Wcfront flag is specified or when the file-name extension is .C or .cpp.
The simplified syntax of the TNS c89 utility is:
flag
is a valid c89 utility flag.
operand,
is a valid c89 utility operand.
c89 [flag...] operand...