HP 3000 Manuals

Segmented and Executable Libraries [ HP Link Editor/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Link Editor/XL Reference Manual

Segmented and Executable Libraries 

Executable libraries on MPE XL systems are similar to segmented libraries
(SLs) on MPE V systems.  Executable libraries contain executable code
that is used by the loader at run time to resolve external references.
Modules in executable and segmented libraries are shared by programs
running concurrently.

The following list summarizes the similarities between the MPE V
Segmenter commands that manage segmented libraries and the HP Link
Editor/XL commands that manage executable libraries:

   *   The ADDSL command adds code units to a segmented library and the
       ADDXL command adds code units to an executable library.

   *   The BUILDSL command creates a segmented library and the BUILDXL
       command creates an executable library.

   *   The COPYSL command copies one segmented library to another and the
       COPYXL command copies one executable library to another.

   *   The LISTSL command lists the contents of a segmented library and
       the LISTXL command lists the contents of an executable library.

   *   The PURGESL command deletes code units from a segmented library
       and the PURGEXL command deletes code units from an executable
       library.

Although executable and segmented libraries are similar, executable
libraries provide more power and flexibility in managing executable code.
The following list summarizes the differences between these libraries:

              MPE V Segmenter                            HP Link Editor/XL 

   *   Segmented libraries must have the       *   Executable libraries can have any
       name SL.                                    valid MPE XL file name.

   *   Using the LIB= parameter, you can       *   Using the LIB= and XL= parameters of
       search up to three segmented                the LINK command, you can search any
       libraries.                                  number of executable libraries at
                                                   run time.

   *   You can add only one segment to a       *   Using ADDXL, you can add one or more
       segmented library using the ADDSL           modules (from an executable program
       command.                                    file or from one or more relocatable
                                                   libraries) to an executable library.

   *   You cannot use relocatable libraries    *   When adding modules to an executable
       to resolve external references when         library using the ADDXL command, you
       adding modules to a segmented               can use relocatable libraries to
       library.                                    resolve external references.

   *   You cannot merge modules when adding    *   When adding modules to an executable
       them to a segmented library.                library using the ADDXL command, you
                                                   can merge one or more modules into
                                                   one.



MPE/iX 5.0 Documentation