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

An application program can be compiled to run in either the OSS or Guardian environment and
can use services from each environment, including the API, tools, and utilities. The interoperability
enables you to:
Compile and link OSS programs in the Guardian environment
Compile and link Guardian programs in the OSS environment
Call most Guardian C functions and Guardian system procedures from OSS programs
Call most OSS functions from Guardian programs
You do not need to do anything special for programs that manipulate objects exclusively in the
environment in which they run. However, the NonStop OS enables you to write programs that
manipulate objects in both the Guardian and OSS environments.
For TNS C programs, Guardian and G-series OSS C run-time interoperability is supported for
programs using only the 32-bit or wide data model. Interoperability is not supported for TNS C
programs using the 16-bit data model. Interoperability is supported for all native programs, because
native C programs support only the 32-bit or wide data model.
Some of the interoperable modules created before the D44 product version require code changes
and recompilation. For more details and instructions, see Changes Required to Interoperable
Compilation Modules at D44 (page 77).
For more details on Guardian and OSS interoperability, see the Open System Services Programmer’s
Guide.
48 Introduction to HP C and C++ for NonStop Systems