TNS/E Native Application Conversion Guide

Introduction to Native Mode
TNS/E Native Application Conversion Guide529659-003
1-6
Native C Compiler
Guardian environment. The EPTAL compiler command line syntax is similar to that of
the TAL compiler command. The eptal utility runs the pTAL compiler on the PC.
ETK enables you to compile and link programs on a PC (for details, see the
pTAL
Reference Manual
). You can copy the object files to a TNS/R or TNS/E system and
execute them in the Guardian and OSS environments.
The TNS/E pTAL compiler provides a syntax-checking mode that helps you convert
TAL to pTAL. In this mode, the compiler identifies most source code changes and
suggests a method to recode pTAL.
Native C Compiler
The native C compiler accepts C language source files that comply with either the
ISO/ANSI C language standard (ISO/IEC 9899:1990), ISO/ANSI C language standard
(ISO/IEC 9899:1999), or Common Usage C (sometimes called Kernighan and
Ritchie C or K&R C). The native C compiler also accepts HP language extensions for
NonStop systems.
You can run the native C compiler in the Guardian and OSS environments and on the
PC as part of ETK (the Tandem Development Suite is not supported on H-series
systems). The CCOMP command runs the compiler in the Guardian environment. The
native C compiler command line syntax is similar to that of the TNS C compiler. The
native c89 or native c99 utility runs the compiler in the OSS environment. The native
c89 or native c99 utility syntax is similar to that of the TNS c89 utility or the TNS/E
c99 utility.
ETK provides cross compilers that enable you to compile and link programs on a PC
under the Microsoft Windows operating system for execution on the Integrity NonStop
server. You can compile programs targeted for either the TNS/R or TNS/E system,
copy the object files to the appropriate Integrity NonStop server, and execute them in
the Guardian and OSS environments.
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.
The H-series RVUs do not support the NMCMT native mode conversion tool, which is
available on TNS/R systems for converting programs to TNS/R native mode.
Native C++ Compiler
The native C++ compiler accepts C++ language source files that comply with the
ISO/ANSI C++ language standard (ISO/IEC 14882:1998). The native C++ compiler
also accepts HP language extensions for NonStop systems.
You can run the native C++ compiler in the Guardian and OSS environments and on
the PC as part of ETK (the Tandem Development Suite is not supported on H-series
systems). The CPPCOMP command runs the compiler in the Guardian environment.