C/C++ Programmer's Guide (G06.25+)
Compiling, Binding, and Accelerating TNS C
Programs
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
14-13
Using the TNS c89 Utility
•
C compiler
The compiler translates the source text into object code.
•
Binder
The Binder resolves external references to library routines and performs fixups to
the object file.
•
Accelerator
The Accelerator generates RISC instructions from the TNS object file.
•
SQL/MP compiler
This compiler generates the appropriate code for embedded SQL/MP statements.
Using the TNS c89 Utility
You control TNS c89 with flags and operands. Flags direct c89 to initiate tasks, such
as compiling a source file. Flags are also used to change the settings of components
controlled by c89, such as to direct the C compiler to generate symbolic information
used in debugging. Operands are the objects acted on or used by the components
controlled by c89, such as source files to compile or library files to search when
resolving external references. The simplified syntax of the TNS c89 utility is:
flag
is a valid c89 utility flag.
operand
is a valid c89 utility operand.
Table 14-5
summarizes commonly used operands.
Table 14-6
summarizes commonly used TNS c89 flags and describes equivalent
Guardian environment actions.
c89 [flag...] operand...
Table 14-5. Commonly Used TNS c89 Operands
To specify this type of file Specify this operand
A C source file filename.c
An object file filename.o