TNS/R Native Application Migration Guide
Introduction to Native Mode
TNS/R Native Application Migration Guide—523745-001
1-18
Benefits of Native Mode
Benefits of Native Mode
Native mode provides many benefits:
•
General
°
Native code often runs significantly faster than TNS and accelerated code.
°
Native object code does not need to be accelerated.
°
Native processes support more global variables than TNS processes.
°
Native processes support a default stack of 1MB (expandable to 32MB), which
is significantly larger than the 64K stack limit for TNS processes.
•
C and C++
°
The native C and C++ compilers and the nld utility run on the PC as part of
ETK or TDS. These native cross-compilers generate code that runs on
NonStop systems.
°
The native Guardian and Open System Services C run-time library functions
provide greater correspondence and interoperability than the TNS C library
functions.
°
The native Guardian and Open System Services C run-time library provide
much of the X/OPEN UNIX 95 application program interface (API).
°
The native C++ compiler generates code that is easier to debug than the TNS
C++ preprocessor, Cfront.
•
COBOL85
°
The code space limit for a native COBOL85 program is 32 megabytes,
compared to 128 KB for a TNS COBOL85 program.
°
The data space limit of approximately 60 KB for the sum of all of the Working-
Storage Sections and File Sections of a TNS process does not apply to native
COBOL85 programs. The Working-Storage Section and the Extended-Storage
Section are the same in native COBOL85. The small data area is limited to
32,768 characters, but you can use the LARGEDATA directive to put additional
data items in the large data space.