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

Table Of Contents
Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
1-17
NonStop SQL/MP Compiler and NonStop SQL/MX
Compiler
enoft runs in the Guardian and OSS environments. The enoft syntax and
capabilities are nearly identical in each environment. For more details, see the enoft
Manual.
Native object files are in Executable and Linking Format (ELF), a standard format used
for object files, with HP extensions. For more details on native object files, see the eld
Manual.
A native object file is either a linkfile or a loadfile, but not both. The native compilers
produce only linkfiles, while the nld utility can produce either linkfiles or loadfiles.
Linkfiles can be used again as input to eld. Loadfiles can be used as input to eld only
for modifying loadfile attributes. Both linkfiles and loadfiles can be used as enoft
input.
NonStop SQL/MP Compiler and NonStop SQL/MX Compiler
The NonStop SQL/MP compiler processes embedded SQL statements from C source
programs and generates the correct NonStop SQL/MP database calls. For more details
see the SQL/MP Programming Manual for C.
The NonStop SQL/MX compiler, available on the OSS platform, processes embedded
SQL statements from TNS/E native C or C++ source programs and generates the
correct NonStop SQL/MX database calls. For more details, see the SQL/MX
Programming Manual for C and COBOL.
TNS/E Native C and C++ Migration Tool
The native C and C++ migration tool, NMCMT, scans source files and produces a
diagnostic listing. The listing identifies most C and C++ language source code changes
required to migrate from TNS C (D20 or later product versions) to native C or C++.
The native mode migration tool is available in both the Guardian and OSS
environments, and it is integrated into ETK on the PC.
Features of TNS/E Native C and C++
Beginning with the H06.01 RVU, TNS/E native C and C++ provides:
The language as defined by The Annotated C++ Reference Manual by Ellis and
Stroustrup (excluding support for exception handling).
The language specification in the 1996 X3J16/WG21 Working Paper. VERSION2
of the native C++ compiler is based on the 1996 standard, including support for
exceptions and features that are not in the The Annotated C++ Reference Manual
but are new in the working paper. A summary of those major features appears in
Can Be Linked to Produce a Loadfile Can Be Executed
Linkfiles Yes No
Loadfiles No Yes