COBOL Manual for TNS/E Programs (H06.03+)
Program Compilation
HP COBOL Manual for TNS/E Programs—520347-003
11-19
Object File Creation
Object File Creation
The object file that the compiler produces is either a linkfile or a loadfile.
The compiler produces a loadfile if you specify the directive RUNNABLE. If the
compilation unit contains no main program, executing the object file causes it to
terminate immediately with an error message. The compiler produces a linkfile by
default (if you do not specify the RUNNABLE directive). Linkfiles that the compiler
produces can be input to the eld utility. Loadfiles that the compiler produces cannot be
input to the eld utility. For information on the eld utility, see the eld Manual.
Manipulating Object Files
You can use a TNS/E HP COBOL, TNS/E HP C, TNS/E HP C++, or EpTAL object file
as input to the linker to create a new target file. Using the linker, you can add code
blocks and data blocks compiled from TNS/E HP COBOL, TNS/E HP C, TNS/E
HP C++, or EpTAL source files. For details, see the eld Manual.
Compilation Statistics
Statistics are printed at the end of every compilation:
1. Linker statistics (if an object file was produced)
2. Compiler statistics
Example 11-6, ECOBOL Compiler Statistics, on page 11-19 is the result of a
compilation that did not specify the RUNNABLE directive.
Example 11-7, ECOBOL Compiler and Linker Statistics, on page 11-20 is the result of a
compilation that specified the RUNNABLE directive.
Example 11-6. ECOBOL Compiler Statistics
COBOL - T0356H01 - (20DEC2004)
No failures detected.
No errors detected.
No warnings reported.
No remarks issued.
Maximum symbol table size = 10884 bytes
Object file: opt2o
Compiler driver: \DRP12.$SYSTEM.SYSTEM.ECOBOL
COBOL DLL: \DRP12.$SYSTEM.ZDLL031.ZCOBDLL
CRE DLL: \DRP12.$SYSTEM.ZDLL031.ZCREDLL
ECOBEXT: \DRP12.$SYSTEM.SYSTEM.ECOBEXT
Compiler statistics
phase CPU seconds elapsed time file name
ECOBFE 0.9 00:00:05 \DRP12.$SYSTEM.SYSTEM.ECOBFE
total 0.9 00:00:06
All processes executed in CPU 01 (NSE-P)
Swap volume: \DRP12.$SYSTEM










