Using an Executable Library [ Getting Started as an MPE/iX Programmer Programmer's Guide ] MPE/iX 5.0 Documentation
Getting Started as an MPE/iX Programmer Programmer's Guide
Using an Executable Library
You can use HP Link Editor/XL to create and maintain executable library
files (XLs). XLs contain executable modules with the following
characteristics:
* Are in a form that can be directly executed.
* Are shared, so that only one copy of the code need exist on the
system. Programs that use an executable module share the same
physical copy of the code.
* Have their own global data, separate from the program's global
data.
* Have external references between executable modules and calling
programs resolved at run time.
* Cannot have outer blocks and are, thus not independently
executable.
HP Link Editor/XL creates an XL by linking relocatable object files or
modules and placing the resulting modules in a library file. To be
functional, an XL must be loaded with an executable program file
containing an outer block and an entry point.
MPE/iX executable libraries (XLs) have the following characteristics:
* They can have any valid MPE/iX file name.
* Many can be accessed in one command because you can specify
several in the XL= parameter of :LINK or :RUN.
Creating an XL is a process similar to creating a relocatable library
(RL); build an empty XL and add modules to it. For example, the commands
:LINKEDIT
LinkEd> BUILDXL MYXL
LinkEd> ADDXL FROM=MYOBJ
LinkEd> EXIT
enter HP Link Editor/XL, build a new XL named MYXL, add the contents of a
relocatable object file named MYOBJ to it, and exit HP Link Editor/XL.
For detailed information on manipulating an XL, refer to Link Editor/XL
Reference Manual (32650-90030).
HP Link Editor/XL automatically pre-links relocatable object modules as
you add them to an XL. XLs are not searched at link time, but you can
specify a list of them for the loader to search when the program is run.
MPE/iX system libraries are XLs. The loader automatically searches
system libraries after any libraries you specify at load time.
MPE/iX 5.0 Documentation