COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Summary of Execution Modes
TNS/E systems support three execution modes:
TNS/E Native ModeAccelerated ModeTNS Mode
Programs are generated by TNS/E
native compilers.
Programs are generated by TNS
compilers and then processed by the
TNS Object Code Accelerator (OCA).
Programs are generated by TNS
compilers.
Programs use TNS/E native process
and memory architecture.
Programs use TNS process and
memory architecture.
Programs use TNS process and
memory architecture.
Programs consist of TNS/E native
object code (Itanium instructions).
Programs consist of TNS object code
(TNS instructions) and accelerated
Programs consist of TNS object code
(TNS instructions).
object code (equivalent
OCA-generated Itanium instructions).
Programs execute Itanium instructions
directly on Itanium processors.
Programs execute Itanium instructions
directly on Itanium processors and use
Millicode routines implement the TNS
instructions on Itanium processors.
TNS mode to execute instructions for
which the OCA could not generate
equivalent Itanium instructions.
Because of architectural differences between execution modes, you cannot mix TNS object code,
accelerated object code, and native object code in one loadfile. A native program can contain
only native object code.
HP COBOL Compilers for TNS/E Programs
For HP COBOL source programs, HP provides the compilers in Table 5. In this manual, “ECOBOL
compiler” means both of these compllers unless otherwise stated.
Table 5 HP COBOL TSN/E Compilers (T Number 0356)
DescriptionCompiler
Produces native TNS/E object code, which is
position-independent code (PIC).
ECOBOL
Enables you to build native TNS/E objects or NonStop
systems applications on a PC
Native COBOL Cross Compiler for TNS/E Programs on
PC
Guardian and OSS Environments
The NonStop operating system offers two operating environments, the Guardian environment and
the OSS environment.
The OSS utility ecobol calls the ECOBOL compiler.
The OSS environment provides industry-standard application program interfaces (APIs) and utilities
to enable you to port existing applications quickly and easily to NonStop systems. The NonStop
operating system continues to support Guardian services. Most features of the HP COBOL language
and library are available in the OSS environment, and most of them operate as they do in the
Guardian environment. For more information on OSS, see Chapter 19: Using HP COBOL in the
OSS Environment.
In both the OSS and the Windows environments, the flag -Wsystype={guardian|oss}
determines whether the native COBOL cross compiler creates loadfiles for the Guardian environment
or for the OSS environment. The default is the Guardian environment. For more information on the
native COBOL cross compiler, see Chapter 34: Native COBOL Cross Compiler on PC (page 964).
40 Introduction