HPlogo Resource Management Programmer's Guide: HP 3000 MPE/iX Computer Systems > Chapter 3 Dynamic Loading of Library Procedures

Determining the Binding Sequence

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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.

  • You can specify a list of your own executable libraries in the XL= parameter of the :LINK command.

  • 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 intrinsic.

  • 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 Title not available is created (arrows determine the search direction):

Figure 3-1 Illustration of a Load Time inding Sequence.

[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.)