C/C++ Programmer's Guide (G06.25+)
Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
1-10
TNS/R Native C and C++ Migration Tool
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 the HP Enterprise Toolkit 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 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-106. 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.
This manual is not intended to be a reference manual for ANSI C or for C++. For a
complete description of ANSI C, see ANSI X3.159. For a complete description of C++,
see ANSI X3J16/96-0225 (VERSION2) and ISO/IEC 14882:1998(E) (VERSION3).
Useful references on C and C++ include:
•
ANSI C, American National Standards Institute. ANSI X3.159-1989.
•
Ellis, Margaret A. and Stroustrup, Bjarne. The Annotated C++ Reference Manual.
Addison Wesley, 1990.
•
ISO/IEC. Programming Languages – C. International Standard ISO/IEC 9899. First
edition 1990-12-15.
•
Working Paper for Draft Proposed International Standard for Information Systems–
Programming Language C++. X3, Information Processing Systems. 2 Dec 1996.
X3J16/96-0225 WG21/N1043 (the standard on which the NonStop VERSION2 of
the Standard C++ Library is based).