C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
14-1
14
Compiling, Binding, and
Accelerating TNS C Programs
Selecting a Development Platform on page 14-2
Specifying Header Files on page 14-3
Working in the Guardian Environment on page 14-4
°
Compiling a C Module on page 14-4
°
Binding a C Module on page 14-6
°
Specifying Library Files on page 14-8
°
Changes in Binding CLIB on page 14-9
°
Restrictions on Binding Caused by the ENV Pragma on page 14-10
°
Accelerating C Programs on page 14-11
Working in the OSS Environment on page 14-12
°
Versions of the c89 Utility on page 14-12
°
Components of the TNS c89 Utility on page 14-13
°
Using the TNS c89 Utility on page 14-13
°
Binding an OSS TNS Module on page 14-15
°
Examples of Working in the OSS Environment on page 14-16
The TNS C compiler takes as input a module (a translation unit) and generates an
object file. A module is a source file and all the headers and source files it includes,
except for any source lines skipped as the result of conditional preprocessor directives.
The Binder collects and links object files generated by the C compiler and produces an
executable object file (a program file).
The Accelerator processes TNS object files (object files generated by the C compiler
and Binder) into accelerated object files for TNS/R systems. Accelerated object files
run faster than TNS object files on TNS/R systems.
The Object Code Accelerator (OCA) processes TNS object files (object files generated
by the C compiler and Binder) into accelerated object files for TNS/E systems.
Accelerated TNS object files run faster than plain TNS object files on TNS/E systems.
The SQL compiler processes TNS and accelerated object files and generates code for
embedded SQL statements.
The G-series TNS c89 utility controls the C compilation system in the Open System
Services (OSS) environment. c89 provides a simple interface to the components of the
C compilation system, including the C language preprocessor, C compiler, Binder,
Accelerator, and the SQL compiler.