C/C++ Programmer's Guide (G06.25+)
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
15-1
15
Compiling, Binding, and
Accelerating TNS C++ Programs
•
Working in the Guardian Environment on page 15-1
°
C Preprocessor Cprep on page 15-3
°
C++ Translator Cfront on page 15-6
°
TNS C Compiler Run Command Syntax on page 15-8
°
File Formats on page 15-9
°
Compiling a Sample C++ Program on page 15-10
°
Error Messages in the Guardian Environment on page 15-11
°
Binding C++ Programs on page 15-12
•
Working in the G-Series OSS Environment on page 15-15
°
TNS c89 Flags on page 15-16
°
TNS c89 Operands on page 15-17
°
Input Files on page 15-17
°
Binding on page 15-17
°
Examples on page 15-17
°
Error Messages in the OSS Environment on page 15-18
Working in the Guardian Environment
To create an executable TNS C++ program in the Guardian environment:
1. Run the C preprocessor Cprep
2. Run the C++ translator Cfront
3. Run the C compiler
4. Run the Binder
5. Run the Accelerator or Object Code Accelerator (OCA) (optional)
This section describes each compilation step, including the purpose of the compilation,
the output from the compilation, and the syntax description for the compilation run
command. This section also contains an example that shows you how to compile a
simple TNS C++ program.
You can use a separate run command for each of the C++ compilation steps, as
described in this section and shown in the compilation example, or you can use a
TACL macro to consolidate these compilation steps.
If you use a TACL macro to drive the C++ compilation, you still need to understand
what is needed for each compilation step, what is accomplished by each compilation
step, and what is the possible output from each compilation step. This section provides
you with this information.