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

The native C compiler can be run in the Guardian and OSS environments or on a PC:
In the Guardian environment, use the NMC command to run the native compiler. The NMC
command line syntax is similar to that of the C command for running the TNS C compiler. For
syntax information, see Compiling a C Module (page 263).
In the OSS environment, use the native c89 utility to run the TNS/R native C compiler. The
native c89 utility syntax is similar to that of the TNS c89 utility. For syntax information, see
the c89(1) reference page either online or in the Open System Services Shell and Utilities
Reference Manual. The Open System Services Programmer’s Guide provides guidance on the
use of C in the OSS environment.
On a PC running the Windows operating system, use the NonStop Development Environment
for Eclipse (NSDEE), ETK or TDS to compile C code. You can also use the command-line cross
compiler (named c89) outside ETK or TDS. For more details, see the online help in NSDEE,
ETK or TDS, or the file “Using the Command-Line Cross Compilers installed with ETK compiler
package.
NOTE: For more information about ETK, see Chapter 18: Using the Native C/C++ Cross
Compiler on the PC.
The native C compiler supports programs that define the size of pointers and type int as 32 bits
(programs compiled with the pragma WIDE). Existing TNS C language programs that define
pointers or type int as 16 bits must be changed. Few other C language source code changes
are required to use the native C compiler.
TNS/R Native C++ Compiler
There are three versions or dialects of the native C++ compiler; all the three versions accept C++
language source files and support HP language extensions. However, the three versions support
different standards as described in the descriptions of pragmas VERSION1, VERSION2, and
VERSION3.
The native C++ compiler can be run in the Guardian and OSS environments, and on a PC using
NSDEE, ETK, or TDS:
In the Guardian environment, use the NMCPLUS command to run the native C++ compiler.
NMCPLUS command syntax is similar to that of the C command for running the TNS C compiler
and to that of the Cfront translator. For syntax information, see Compiling a C Module
(page 263).
In the OSS environment, use the native c89 utility to run the native C++ compiler. Native c89
syntax is similar to that of the TNS c89 utility. For syntax information, see the c89(1) reference
page either online or in the Open System Services Shell and Utilities Reference Manual.
On a PC running the Windows operating system, use the NonStop Development Environment
for Eclipse (NSDEE), ETK or TDS to compile C code. You can also use the command-line cross
compiler (named c89) outside of NSDEE, ETK, or TDS. For more details, see the online help
in NSDEE, ETK or TDS, or the file “Using the Command-Line Cross Compilers” installed with
ETK compiler package.
NOTE: For more information about NSDEE, ETK, and TDS, see Chapter 18: Using the Native
C/C++ Cross Compiler on the PC.
The native C++ compiler supports programs that define the size of data type int as 32 bits
(programs compiled with the pragma WIDE). Existing TNS C++ language programs that define
the type int as 16 bits must be changed. Few other C++ language source code changes are
required to use the native C++ compiler.
The native C++ compiler provides a more powerful and simplified development environment than
TNS Cfront. For example, to create an accelerated executable TNS C++ program, you must perform
TNS/R Native C and C++ Language System 33