Binder Manual (G06.24+, H06.03+)

Using Binder
Binder Manual528613-003
2-3
Defining the Target File
In the following example, Binder prompts you at the home terminal for commands.
Binder sends the output listing to the LISTTAL file:
In the following example, Binder executes the commands, terminates, and returns
control to TACL.
This command causes Binder to accept and execute the commands in the file
named BUILDING and to direct the output (including error messages) to the file
LIST. Binder terminates when it reaches an end of file or when it encounters the
EXIT command in the file BUILDING.
If you do not specify an OUT file, Binder sends output to the default OUT file; this
file is normally your home terminal.
In the following example, Binder directs its output to the LISTC file; it ignores the
command file BINDC because of the appearance of BIND commands in the BIND
command line:
Defining the Target File
To define the target file, you enter BIND commands that specify the order and contents
of the file. You specify the contents of the target file by identifying the code blocks and
data blocks that you want to include. You specify the order of the target file contents by
the order in which you specify the commands.
A block is the smallest unit that can be separately relocated. Both code instructions
and data are organized into blocks. Each compiler has its own conventions for
specifying block names for code and data. Section 4, Object File Structure
gives
comparative information for source language constructs and the resulting blocks. For
additional information, consult the language reference manual for the language you are
using.
If you use BIND commands to modify code or data blocks, Binder makes these
changes in the target file only.
Specifying Input File Names
You specify the names of input object files using the ADD and REPLACE commands.
The ADD command tells Binder where to find the blocks for the include lists.
REPLACE tells Binder to exchange the specified entry for an existing one on either the
code block or data block include list.
13> BIND / OUT listtal /
14> BIND / IN building, OUT list/
15> BIND / IN bindc, OUT listc/ ADD * from prog1