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-12
Working in the OSS Environment
•
Generate and retain the Binder and Inspect symbols regions for your programs.
After accelerating a program, you can strip the symbols region from it without
affecting performance.
For a complete description of accelerating programs for TNS/R systems, refer to the
Accelerator Manual. For a complete description of accelerating programs for TNS/E
systems, refer to the Object Code Accelerator (OCA) Manual. Topics covered in these
manuals include:
•
Determining which programs to accelerate
•
Preparing your program for acceleration
•
Specifying Accelerator or OCA program command-line syntax
•
Setting Accelerator or OCA options
•
Increasing the performance of accelerated programs
•
Debugging accelerated programs
Working in the OSS Environment
From a G-series Open System Services (OSS) environment, you can compile, bind,
and accelerate TNS C programs for either the OSS or Guardian environment. In the
OSS environment, you use the TNS c89 utility to invoke the C compiler, the Binder
(the BIND program), and the Accelerator (the AXCEL program) to develop your
applications. OCA is not available from the TNS c89 utility.
This subsection is only a summary.
Versions of the c89 Utility
The TNS c89 utility is located in the /nonnative/bin directory on D40 and later
D-series and G-series 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 (man -M
/nonnative/usr/share/man c89). The c89 reference page in D40 and later
versions of the Open System Services Shell and Utilities Reference Manual describes
the native c89 utility.
Components of the TNS c89 Utility
The TNS c89 utility enables you to compile ISO-compliant C programs for either the
Guardian or OSS environment. By default, c89 generates code for the OSS
environment. c89 provides a simple interface to the components of the C compilation
system:
•
C language preprocessor
The preprocessor manipulates the text of the source file to prepare it for the C
compiler, including the insertion of function prototypes from the specified header
files.