Determining the Binding Sequence [ Resource Management Programmer's Guide ] MPE/iX 5.0 Documentation
Resource Management Programmer's Guide
Determining the Binding Sequence
The binding sequence is a list of XLs the loader searches to satisfy your
program's unresolved external references. The loader creates the binding
sequence at load time. The program file is placed first in the binding
sequence. Any additional XLs are placed after the program file in the
order in which you specified them. The System Libraries (XL.PUB.SYS
followed by NL.PUB.SYS) are always placed last in the binding sequence.
The order of the binding sequence is important, as the loader makes a
single pass in one direction through the list.
MPE XL enables you to specify additional XLs you want placed in the
binding sequence by using any of the methods described in groups one
through three below.
An XL list specified using methods described in group two always override
lists specified using methods described in group one. Likewise, lists
specified using methods described in group three always override lists
specified using methods described in groups one and two.
1. You can specify a list of your own executable libraries in the XL=
parameter of the :LINK command.
2. You can specify a list of MPE XL-defined libraries in either the
LIB= parameter of the :RUN command or the flags parameter
LIBSEARCH bits of the CREATE or CREATEPROCESS intrinsics.
1. You can specify a list of your own executable libraries in the XL=
parameter of the :RUN command, or Item Number 19 of the
CREATEPROCESS intrinsic.
For example, if the calling process was created with the following
command:
:RUN PROGRAM1; XL=LIBA,LIBB,LIBC,LIBD
The binding sequence illustrated in Figure 3.1 is created (arrows
determine the search direction):
Figure 3.1. Illustration of a Load Time Binding Sequence.
(Refer to the HP Link Editor/XL Reference Manual (32650-90030) for more
information about creating and maintaining XLs.)
MPE/iX 5.0 Documentation