TNS/R Native Application Migration Guide

Introduction to Native Mode
TNS/R Native Application Migration Guide523745-001
1-15
Shared Run-Time Libraries (SRLs)
As shown in Figure 1-2, the D-series TNS C and CRE libraries are located in the
system library. The native C and CRE libraries are SRLs.
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.
Figure 1-2. C Run-Time Library Organization
C-Series TNS C
Programs
D-Series TNS C
Programs
Native C Programs
Application
Code
Application
Code
Application
Code
C Run-Time Library
(Model-Dependent)
C Run-Time Library
(Model-Independent)
C Run-Time Library
(Model-Dependent)
C Run-Time Library
(Initialization)
Application Program
System
C Run-Time Library
(Model-Independent)
CRE Library
C Run-Time Library SRL
CRE Library SRL
VST002.vsd