C/C++ Programmer's Guide (G06.25+)
Compiling, Binding, and Accelerating TNS C
Programs
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
14-2
Selecting a Development Platform
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 an H-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.
The following restrictions apply to developing Guardian TNS programs with OSS tools:
•
The TNS versions of OSS tools are not available on H-series (TNS/E) systems.
•
You cannot use the NOWIDE, NOXMEM, and NOXVAR pragmas. Thus, you can
develop programs that use only the 32-bit or wide data model.
•
You cannot use the RUNNABLE and SEARCH pragmas. However, you can direct the
TNS c89 utility to bind implicitly after a compilation. You can also specify library
files to be searched using the TNS c89 -L flag.
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)