C/C++ Programmer's Guide (G06.25+)
Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
1-23
Guardian and OSS Environment Interoperability
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 operating 
system 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 interoperable modules created before the D44 product version require code 
changes and recompilation. For details and instructions, see Changes Required to 
Interoperable Compilation Modules at D44 on page 4-10.
For details on Guardian and OSS interoperability, refer to the Open System Services 
Programmer’s Guide.










