TNS/R Native Application Migration Guide

Contents
TNS/R Native Application Migration Guide523745-001
ii
1. Introduction to Native Mode (continued)
1. Introduction to Native Mode (continued)
Native Architecture Features 1-10
Native Process Environment 1-10
Native Object File Format 1-13
Signals Facility 1-13
Shared Run-Time Libraries (SRLs) 1-14
Kernel-Managed Swap Facility (KMSF) 1-16
Benefits of Native Mode 1-18
Constraints of Native Mode 1-19
2. Developing a Migration Strategy
Determining Which Programs to Migrate 2-1
Preparing Programs for Migration 2-2
Planning System Resources 2-2
Maintaining Common Source Code for TNS and Native Compilers 2-3
Determining Optimization Levels 2-4
Determining Data Alignment 2-5
Tuning the Performance of Native Programs 2-6
Detecting Compatibility Traps 2-6
Eliminating Compatibility Traps 2-7
3. C and C++ Migration Tasks
Using the Native C and C++ Migration Tool 3-2
Running NMCMT in the Guardian Environment 3-2
Running nmcmt in the OSS Environment 3-4
Using the Native C and C++ Compilers 3-5
Converting Code to Use 32-Bit Pointers and Integers
3-6
Replacing Obsolete External Function Declarations
3-7
Replacing Obsolete Keywords 3-8
Changing Use of _cc_status for Return Values 3-8
Replacing Calls to Obsolete C Library Supplementary Functions 3-9
Replacing Calls to Obsolete C Library Guardian Alternate-Model I/O Functions 3-11
Checking Calls to Changed C Library Functions 3-13
Changing Programs That Use Guardian and OSS Environment Interoperability 3-14
Changing Code That Relies on Arithmetic Overflow Traps 3-15
Using Active Backup Programming in C 3-16
Replacing Obsolete C++ Library Operations 3-16
Using the Tools.h++ Class Library 3-16
Specifying Pragmas or Flags 3-17