Linking One Relocatable Object File [ HP Link Editor/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Link Editor/XL Reference Manual
Linking One Relocatable Object File
Link a relocatable object file yourself, rather than have it linked
automatically, when you want to use file names or execution-time defaults
that vary from the defaults supplied by the compiler. (Execution-time
defaults include type checking levels, capability-class attributes, stack
size, and heap size).
For example, you can compile, link and execute the HP COBOL II program,
EX1SRC, using one command:
:COB85XLG EX1SRC
This command is identical to using the following three commands:
:COB85XL EX1SRC
:LINK
:RUN $OLDPASS
Both of the above methods use $OLDPASS for the relocatable object file
and for the executable program file.
Figure 2-1 shows how to compile and link an HP COBOL II source file while
explicitly naming the relocatable object file and the executable program
file to be used. The COB85XL command compiles the source file, EX1SRC,
producing the relocatable object file, EX1OBJ. The MPE XL LINK command on
the second line in figure 2-1 creates the executable program file,
EX1PROG.
___________________________________________________________________
| |
| :COB85XL EX1SRC,EX1OBJ |
| :LINK FROM=EX1OBJ;TO=EX1PROG |
___________________________________________________________________
Figure 2-1. Linking One HP COBOL II Relocatable Object File
MPE/iX 5.0 Documentation