C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiling, Binding, and Accelerating TNS C
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
14-2
Selecting a Development Platform
There are two TNS C compilers. One compiler runs in the Guardian environment, and
the other compiler runs in the OSS environment. Each compiler compiles Guardian
and OSS programs and produces identical code. However, each compiler has different
default pragma settings.
Selecting a Development Platform
A development platform consists of the hardware system and software environment
available to compile, bind, accelerate, and run a program.
HP NonStop TNS systems support only the Guardian environment. HP NonStop native
systems support both the Guardian and Open System Services (OSS) environments.
You can develop OSS TNS programs regardless of whether the OSS environment is
available on the system. However, you cannot run and test OSS TNS programs on a
system without the OSS environment, and you cannot run and test TNS or accelerated
processes on a NonStop NS-series system in the OSS environment.
It is easier to develop a program in the environment in which it runs, but you can
develop a program in one environment that runs in the other environment, with a few
restrictions.
Table 14-1 describes the capabilities of each development platform.
These restrictions apply to developing Guardian TNS programs with OSS tools:
The TNS versions of OSS tools are not available on NonStop NS-series (TNS/E)
systems.
You cannot use the NOWIDE, NOXMEM, and NOXVAR pragmas. Therefore, you can
develop programs that use only the 32-bit or wide data model.
Table 14-1. Development Platform Capabilities
Capability
TNS system or native
system
with Guardian
environment
Native system with
Guardian
and OSS
environments
Use Guardian development tools for
Guardian TNS programs?
Yes Yes
Use Guardian development tools for
OSS TNS programs?
Yes Yes
Use OSS development tools for
Guardian TNS programs?
No Yes (G-series only)
Use OSS development tools for OSS
TNS programs?
No Yes (G-series only)
Run Guardian TNS programs? Yes Yes
Run OSS TNS programs? No Yes (G-series only)