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-10
NonStop SQL/MP Compiler and NonStop SQL/MX
Compiler
Linkfiles can be used again as input to TNS/R native linker. Loadfiles can be used as
input to TNS/R native linker only for modifying loadfile attributes. Both linkfiles and
loadfiles can be used as noft 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/R 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/R 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/R Native C and C++
Over the years, TNS/R native C and C++ have evolved as the languages themselves
were changing.
At the D40 release, the TNS/R native C/C++ compiler accepted the language as
defined by The Annotated C++ Reference Manual by Ellis and Stroustrup
(excluding support for the exception handling).
At D45, some features were updated to match the language specification in the
1996 X3J16/WG21 Working Paper. VERSION2 of the native C++ compiler is
based on the 1996 standard. The native C++ compiler introduced support for
exceptions and a number of features that are not in the The Annotated C++
Reference Manual but are new in the working paper. A summary of the major
features added at D45 appears in the description of pragma VERSION2 on
page 13-108. A list of specific features accepted from the working paper appears in
Appendix E, Features and Keywords of Version 2 Native C++.
At G06.20, a new version or dialect of the native C++ compiler was introduced.
VERSION3 of the compiler is based on the 1998 standard, listed in the references
that follow. VERSION3 is the default library used by the native C++ compiler.
Can Be Linked to Produce a Loadfile Can Be Executed
Linkfiles Yes No
Loadfiles No Yes