Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
The Development Environment
Open System Services Porting Guide520573-006
2-2
TNS/R Development Tools on TNS/E Systems
HP provides a complete set of C and C++ compilation tools with each native
environment. The TNS/R native compilers generate RISC code, which can run only on
a TNS/R system. The TNS/E native compilers generate Itanium code, which can run
only on a TNS/E system.
The TNS/R and TNS/E native C compilers and the TNS C compiler implement the
ISO/ANSI C, POSIX.1, and POSIX.2 standards and the XPG4 specifications for the C
language, plus extensions defined by HP. However, on H-series systems, the TNS C
compiler is supported only in the Guardian environment; the H-series OSS
environment does not provide a TNS C compiler and does not support execution of
TNS processes. The TNS/R and TNS/E native C compilers also accept programs
written in Common C. These C compilers implement the proposed ANSI standard for
the C++ language and the C++ extensions defined by HP. Using these C compilers is
discussed in Section 2, The Development Environment.
If you wish to migrate your TNS C or C++ source code to TNS/R native mode, refer to
the TNS/R Native Application Migration Guide for issues related to migrating the code
to TNS/R native mode. To migrate a TNS program to TNS/E native mode, you can first
convert it to TNS/R native mode, then migrate the TNS/R native program to the TNS/E
native environment. Refer to the H-Series Application Migration Guide for information
on migrating a TNS/R native program to the TNS/E native environment. See also
Section 10, Native Migration Overview, which provides considerations for migrating to
the TNS/R and TNS/E native environments.
TNS/R Development Tools on TNS/E Systems
In addition to the TNS/E native development tools, TNS/E systems also support the
TNS/R native development tools. You can compile and link TNS/R native programs to
create TNS/R executable object files on a TNS/E system, but you cannot run those
files on the TNS/E system; you must move them to a TNS/R system for execution. This
capability enables you to do some of your TNS/R development work on a TNS/E
system while reserving your TNS/R systems for production use. The following TNS/R
tools are available on TNS/E systems:
C and C++ compilers (c89 -Wtarget=TNS/R)
non-position independent code linker (nld)
PIC linker (ld)
native object file utility (noft)
System Compatibility
All versions of the TNS/R and TNS/E native C compilers (Guardian version, OSS
version, and the HP Enterprise Toolkit—NonStop Edition, or ETK, version on a PC)
generate the same object code from the same source. You can develop code on an
NonStop system in the OSS or Guardian environment, or using ETK on a PC.