Binder Manual (G06.27+, H06.04+, J06.03+)
Using Binder
Binder Manual—528613-004
2-5
Binding Modules
The undefined list differs from the unresolved list in that the undefined list contains
references to just data blocks whereas the unresolved list contains references to both
data blocks and code blocks. While Binder does not need to resolve unresolved code
references to entry points into the operating system or system code library, Binder
must resolve all data references within the process before run time. Undefined data
blocks have known size, but unknown initial values. C and Pascal require a data block
to be defined by exactly one module that is responsible for its initialization. The
undefined data list contains the names of those data blocks whose responsible module
has not yet been located.
Normally, an unresolved reference list is present during some part of the session.For
descriptions of these lists and how they are created, see Section 5, Binder Input and
Output.
Binding Modules
You can bind modules from the same language or from different languages. For
example, suppose two object files, named OBJFILEX and OBJFILEY, contain the code
and data blocks needed to make up a large program. Each object file contains multiple
program units or procedures, all of which are needed in the target file. For this
discussion, the source language does not matter.
You can bind the separate blocks by running BIND and then entering commands at the
Binder prompt. For example:
Unresolved
Reference
Lists
2 There are two unresolved reference lists,
one for entry points and one for data
blocks. As you enter each name on an
include list, Binder removes entries from
the unresolved reference lists if the
entries are satisfied by the new name.
Undefined
List
1 This list contains data blocks referenced,
but not yet defined in C or Pascal.
Search List 1 This list holds disk file names of object
files to search for unresolved references.
Binder searches these files in the order
in which you name them. If two files
contain versions of the same block,
Binder uses the first block encountered.
12> BIND
@ADD * FROM objfilex
@ADD * FROM objfiley
@BUILD trgfilez
Table 2-1. Target File Specifications built by Binder (page 2 of 2)
Name of List Number of Lists Allowed Description