
Chapter 6 423
Command Definitions P-R
PASXL
NOTE Program development in native mode uses the MPE/iX LINK command not
the MPE V/E PREP command. This produces a significant change in the
method of linking code.
If you have created a program called MAIN and a subprogram called SUB, each contained in
a separate file, you might choose to handle it this way in MPE V/E:
PASCAL MAIN, SOMEUSL
PASCAL SUB, SOMEUSL
:
:
PREP SOMEUSL, SOMEPROG
:
RUN SOMEPROG
The second command appends the code from SUB to SOMEUSL.
However, LINK (in MPE/iX native mode) does not append SUB. In MPE/iX, you must
compile the source files into separate object files and then use the Link Editor to link the
two object files into the program file, as in this example:
PASXL MAIN, OBJMAIN
PASXL SUB, OBJSUB
:
LINK FROM=OBJMAIN,OBJSUB;TO=SOMEPROG
:
RUN SOMEPROG
However, if an NMRL is used instead of an NMOBJ, the above can be simplified to the
following:
BUILD RLFILE;DISC=10000;CODE=NMRL
PASXL MAIN, RLFILE
PASXL SUB, RLFILE
LINK RLFILE,SOMEPROG
RUN SOMEPROG
Related Information
Commands PASCALGO, PASCALPREP, PASCAL, PASXLGO, PASXLLK PREP, RUN, LINK,
LINKEDIT
Manuals HP Pascal/iX Reference Manual
HP Link Editor/XL Reference Manual