Comparison of HP Link Editor/XL and MPE V/E Segmenter

HP Link Editor/XL on MPE/iX corresponds to Segmen ter on an MPE V/E operating system, with a few di￿erences. The primary di￿erences are:

A source ￿le must be recompiled to c hange any part of a relocatable object module.

You can create a relocatable library (RL) that con tains one large relocatable object module; or you can create RLs that con tain several relocatable object modules, whic h can be independently added, copied, or purged.

An executable library (XL) is similar to a segmen ted library (SL), except that it does not require segmenting as it gro ws.

You can create an XL that con tains one large executable object module; or y ou can create XLs that contain several executable object modules, whic h can be independently added, copied, or purged.

For a detailed description of the di￿erences bet ween HP Link Editor/XL on MPE/iX and Segmenter on MPE V/E, refer to Link Editor/XL Reference Manual (32650-90030).

How HP Link Editor/XL Works

HP Link Editor/XL processes object code produced b y high-level language compilers, suc h as COBOL II/XL. Object code is sa ved in relocatable object ￿les. HP Link Editor/XL links relocatable object ￿les for execution b y assigning actual memory locations to them and to an y external subroutines that they use.

In addition to creating executable program ￿les, y ou can use HP Link Editor/XL to create and maintain relocatable and executable libraries.

When you invoke the MPE/iX command :LINK, HP Link Editor/XL is automatically en tered, linking is completed, and HP Link Editor/XL is exited. Information required b y HP Link Editor/XL is passed to it as :LINK parameters.

Files Used by HP Link Editor/XL

HP Link Editor/XL can use three t ypes of input ￿les:

Relocatable object ￿les.

Command input ￿le, con taining commands for processing.

Relocatable library (RL) ￿les to be searc hed or manipulated

The command input ￿le is the standard ￿le $STDINX . For sessions, $STDINX is the terminal. For batch jobs, $STDINX is the job ￿le. You can redirect $STDINX to another ￿le by using the STDIN option of the MPE/iX command :RUN. For example, to use the ￿le named SCRIPT as the standard input ￿le, en ter the command

:RUN LINKEDIT.PUB.SYS;STDIN=SCRIPT

You can send one input command through the "INFO=string " parameter of the MPE/iX command :RUN instead of using $STDINX . This starts HP Link Editor/XL, executes the

4-4 HP Link Editor/XL