When you want to use file names or run-time defaults that vary
from the defaults provided by the compiler,
link a relocatable object file yourself, rather than have it
automatically linked.
(Run-time defaults include type checking levels, capability-class
attributes, stack size, and heap size.)
For example, you can compile, link, and execute a COBOL II/XL
program named EX1SRC, by using the command
This command is equivalent to invoking the following three commands:
:COB85XL EX1SRC
:LINK
:RUN $OLDPASS
|
Both of the methods given above use $OLDPASS for the
relocatable object file and for the executable program file.
The example below shows how to compile and link the COBOL II/XL source
file, EX1SRC, using a different relocatable object file and a
different executable program file.
The compiler creates the relocatable object file named
EX1OBJ, which the HP Link Editor/XL command LINK
uses to create the executable program file named EX1PROG.
The second line of this example is the HP Link Editor/XL command
line.
:COB85XL EX1SRC,EX1OBJ
:LINK FROM=EX1OBJ;TO=EX1PROG
|
For a listing of the source file named EX1PROG and
examples of linking several relocatable object files at once,
refer to Link Editor/XL Reference Manual (32650-90030).