H-Series Application Migration Guide (H06.03+)

The TNS/E Native Development Environment
H-Series Application Migration Guide429855-006
2-3
TNS/E pTAL Compiler
TNS/E pTAL Compiler
H-series systems provide a pTAL compiler that is nearly identical to the pTAL compiler
on G-series systems, except that it produces object files consisting of Itanium
instructions instead of RISC instructions. It has a new command name: EPTAL. The
command line syntax is similar.
The TNS/E pTAL compiler can be run in the Guardian environment and on the PC
either at the Windows command prompt or as part of ETK. (TDS is not supported on
H-series systems.) ETK enables you to compile and link programs on a PC. You can
compile programs targeted for the TNS/R or TNS/E system, then copy the object files
to a NonStop server and execute them in the Guardian environment.
Migrating a TNS/R pTAL program to TNS/E pTAL, in most cases, requires no source
code changes. Some programs might require minor source code changes as described
in Section 7, pTAL Migration Tasks.
TNS/E Native C Compiler
The H-series native C compiler is nearly identical to the G-series native C compiler,
except that it produces object files consisting of Itanium instructions instead of RISC
instructions.
Like the TNS/R native C compiler, the TNS/E native C compiler accepts C language
source files that comply with either the ISO/ANSI C Standard or Common Use C
(sometimes called Kernighan and Ritchie C or K&R C). The TNS/E native C compiler
also accepts HP language extensions.
The TNS/E native C compiler can be run in the Guardian and OSS environments and
on the PC either at the Windows command prompt or as part of ETK. (TDS is not
supported on H-series systems.) The CCOMP command runs the compiler in the
Guardian environment. The TNS/E native C compiler command line syntax is similar to
that of the TNS and TNS/R C compilers. The syntax of the TNS/E c89 utility, which runs
the TNS/E native C compiler in the OSS environment, is similar to that of the TNS and
TNS/R c89 utility.
ETK provides cross compilers that enable you to compile and link programs on a PC
under the Windows operating system for execution on the NonStop server. You can
compile programs targeted for either the TNS/R or TNS/E system, copy the object files
to the appropriate NonStop server, and execute them in the Guardian and OSS
environments.
Most TNS/R native C programs can be compiled and run on an H-series system with
no source changes. Some programs might require minor changes as described in
Section 5, Native C and C++ Migration Tasks.