Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 4
Programs and Processes
TNS/E native programs
TNS/R native programs
TNS programs
Accelerated programs
A native process
a process that runs in native mode
consists entirely of native-
compiled instructions. Those instructions are RISC instructions on a TNS/R system
and Itanium instructions on a TNS/E system. A native process is initiated by executing
a native program. Unlike TNS processes, native processes do not use or emulate TNS
architecture-specific constructs, such as TNS registers or 16-bit addressing.
Executable code for a TNS/E native process is contained in the following objects:
The initial program of the process, called user code. This code is read from the
program file.
Dynamic-link libraries (DLLs). These include:
°
The system library, which contains system-related procedures and operating
system code that is accessible by the process using system procedure calls.
The system library consists of a set of implicit DLLs.
°
Other DLLs supplied by HP, such as the C run-time library.
°
User-created DLLs.
A TNS/R native program contains TNS/R native object code. Native object code is
produced by a native compiler and consists entirely of RISC instructions that have
been arranged to take full advantage of the RISC architecture. Refer to the C/C++
Programmers Guide and the pTAL Programmer’s Guide for information about native
compilers.
A TNS program contains TNS object code. TNS object code is produced by a compiler
that is not native. TNS object code executes TNS instructions facilitated by millicode.
Millicode is assembled program code, consisting of RISC instructions, that implements
various TNS low-level functions on a TNS/R CPU. Actual TNS CPUs do not support
D40 or later versions of the operating system.
An accelerated program contains accelerated object code. Accelerated object code is
produced by the Accelerator, a program that processes a TNS object file to run more
efficiently on a TNS/R CPU. An accelerated object file consists of Accelerator-
generated RISC instructions as well as the original TNS instructions. For more
information on using the Accelerator, see the Accelerator Manual.
The accelerated version of an object file almost always runs faster than the TNS
version; the native version of an object file almost always runs faster than the
accelerated version. The actual differences in execution speed between TNS,
accelerated, and native versions of the same program may vary, depending on the
constructs that are used in the source code.