TNS/E Native Application Conversion Guide
TNS/E Native Application Conversion Guide—529659-003
4-1
4 Converting COBOL Programs
This section describes how to convert TNS COBOL programs to TNS/E native mode.
The compilers to which this section applies are:
This section discusses:
•
COBOL Compiler Overview
•
Converting COBOL Programs
•
Changing the Source Program
COBOL Compiler Overview
Both the TNS COBOL compiler and the TNS/E native COBOL compiler comply with
the 1985 COBOL85 standard.
The TNS and TNS/E native COBOL support the same optimization levels:
Key differences between the TNS and native COBOL compilers include:
•
The native COBOL compilers have new command names. The ECOBOL
command calls the Guardian native COBOL compiler, and the ecobol command
calls the OSS native and PC COBOL compilers.
•
The TNS COBOL compilers produce TNS object code, and the TNS/E native
compilers produce Itanium object code.
•
Code produced by the native compilers is position-independent code (PIC), which
can be used to create dynamic-link libraries (DLLs).
•
The code space limit for a TNS COBOL program is 128 KB. The code space limit
for any single native COBOL program is 16 MB. This limit does not include any
contained programs, each of which has its own 16 MB limit. The object code space
limit for the combined program file and ordinary DLLs is 256 MB (this does not
include public DLLs, such as ZCOBDLL and ZCREDLL).
Compiler T Number
TNS COBOL85 T9257
TNS cobol T8498
TNS/E ECOBOL T0356
TNS/E ecobol T0356
OPTIMIZE 0 No optimization
OPTIMIZE 1 Optimizations that do not interfere with debugging
OPTIMIZE 2 Full optimization










