TNS/E Native Application Conversion Guide

Introduction to Native Mode
TNS/E Native Application Conversion Guide529659-003
1-19
KMSF
As shown in Figure 1-2, the TNS C and CRE libraries are located in the system library.
The native C and CRE libraries are DLLs.
The memory and data-model dependent TNS C run-time library code is linked into the
program. Native programs support only one memory model and one data model, so
linking in run-time library code is unnecessary. Native C programs do require C run-
time library initialization code, which is located in the CRTLMAIN file (in the Guardian
environment) or the crtlmain.o file (in the OSS environment and on the PC). For
details on linking C programs, see the
C/C++ Programmer’s Guide
.
KMSF
A swap file is a disk file used for copying data between physical memory and disk
storage. Pages of memory are swapped to disk when physical memory is needed, and
swapped back to physical memory when the data is needed.
Beginning with the D40 RVU and continuing with the G-series and H-series RVUs, the
Kernel-Managed Swap Facility (KMSF) manages virtual memory using swap files
under its control. Each processor in a node has one or more kernel-managed swap
files that provides the swap space needed by TNS and native processes running on
the processor.
Figure 1-2. Run-Time Library Organization
C Run-Time Library
(Model-Independent)
CRE Library
C Run-Time Library
(Initialization)
Application
Code
C Run-Time Library
(Model-Dependent)
Application
Code
C Run-Time Library DLL
CRE Library DLL
TNS C Programs TNS/E Native C Programs
Application Program
System
002VST .VSD