TAL Programmer's Guide

Compiling With Search Lists
Compiling Programs
096254 Tandem Computers Incorporated 14–13
Searching the
Master Search List
BINSERV searches the object files in the order in which they appear in the master
search list. If a procedure or entry-point name that resolves an external reference
appears in more than one file, BINSERV uses only the first occurrence. Thus, the order
in which you specify the files could be important.
Binding the
Master Search List
If the compilation is successful, BINSERV binds the new object file by using
procedures from object files in the master search list to resolve any unsatisfied
references in your program. If procedures from object files in the search list contain
references to other external procedures or to data blocks, BINSERV tries to resolve
those from object files in the master search list.
This example shows SEARCH directives for external procedures:
?SEARCH partx !Object file containing PROC_X
PROC proc_x;
EXTERNAL;
?SEARCH party !Object file containing PROC_Y
PROC proc_y;
EXTERNAL;
PROC proc_z;
BEGIN
CALL proc_x;
CALL proc_y;
END;
Retrieving Global
Initializations
You can use SEARCH to retrieve global initialization values and template structure
declarations as described in “Compiling With Saved Global Data” later in this section.