MPE/iX Commands Reference Manual (32650-90877)

264 Chapter7
Command List V
Commands HEADOFF thru LISTF
Note that when you do this interactively, the command prompts do not appear on the
screen. For example, to send the Link Editor output to the printer:
FILE LINKOUT;DEV=LP
RUN LINKEDIT.PUB.SYS;STDLIST=*LINKOUT
Link Editor listings and maps are sent to the file LINKLIST, not to $STDLIST. The listings
and maps sent to LINKLIST are:
The symbol map produced by the MAP option of the LINK command.
The listing produced by the LISTPROG command.
The listing produced by the LISTOBJ command.
The listing produced by the LISTRL command.
The listing produced by the MAP option of the ADDXL command.
The listings produced by the LISTXL command.
LINKLIST output goes to $STDLIST. But you can redirect it to another file or device by
using the FILE command. To send the listing of the relocatable library LIBRL to the
printer:
FILE LINKLIST;DEV=LP
LINKEDIT
LinkEd> LISTRL RL=LIBRL
LinkEd> EXIT
Use
This command may be issued from a session, job, or program, but not in BREAK. Pressing
Break suspends the execution of this command. Entering the RESUME command continues
the execution.
Examples
This command merges the object modules from the OBJCODE and places them into the
program EXECPROG. It assigns a program stack of 50,000 bytes and requests LINK to build a
map and display the name of each object module as it is being linked.
LINK FROM=OBJCODE;TO=EXECPROG;NMSTACK=50000;MAP;SHOW
The following command merges the object modules from the OBJCODE into program file
EXECPROG and searches the relocatable libraries LINEDRAW and ARCDRAW to resolve external
references. The resulting program file can be executed only in batch mode by anyone with
user mode access.
LINK FROM=OBJCODE;TO=EXECPROG;RL=LINEDRAW,ARCDRAW;CAP=BA
To link module A and module MAIN and share data so that the data symbols in the
program file myprog can be exported and imported to and from the executable library
MYXL, enter:
LINK FROM=A,MAIN; TO=MYPROG; SHARE; RL=LIBCSHR.LIB.SYS; XL=MYXL