COBOL Manual for TNS and TNS/R Programs

Program Compilation
HP COBOL Manual for TNS and TNS/R Programs522555-006
11-27
Object File Creation
Object File Creation
The object file that the compiler produces is either a linkfile or a loadfile.
Topics:
COBOL85 Compiler
NMCOBOL Compiler
Binder Object File Builder
COBOL85 Compiler
The COBOL85 compiler produces a loadfile if the compilation unit contains exactly one
main program (see Main Programs). If the compilation unit contains no main program,
the COBOL85 compiler produces a linkfile. All object files that the COBOL85 compiler
produces can be input to the BIND utility (see Binder Object File Builder).
NMCOBOL Compiler
The NMCOBOL 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 NMCOBOL compiler produces a
linkfile by default (if you do not specify the RUNNABLE directive). Linkfiles that the
NMCOBOL compiler produces can be input to the nld or ld utility. Loadfiles that the
NMCOBOL compiler produces cannot be input to the nld or ld utility.
For information:
Binder Object File Builder
This topic applies only to TNS programs. For similar information on native object files,
see the nld Manual.
The Binder object file builder is an HP product that lets you create, examine, and
combine object files. Binder operates as either of two processes:
BIND is an independent, interactive, command-driven binding utility program.
BINSERV is the Binder server that compilers use to create object files.
Object files are composed of code blocks and data blocks. A block is the smallest unit
on which Binder operates. Using BINSERV, the COBOL85 compiler translates each
program unit into one code block and several data blocks. Each code block and each
data block is marked as having been compiled from HP COBOL source.
Topic Document
nld utility nld Manual
ld utility ld Manual