nld Manual
Converting From Binder to nld
nld Manual—528272-001
B-5
Comparing Binder With nld
In Example B-2, object files obja and objb are linked. Binder produces a target object
file named OBJECT and nld produces a target object file named AOUT. The C run-
time library is linked to the target object file and the heap is set to 10 pages. For details
on how the C run-time library is linked, see C++ Programs on page 2-9.
Example B-3 sets the INSPECT object file attribute to ON for the loadfile objfile.
Example B-2. Linking Two Object Files in Binder and nld (Less Simple Case)
Binder nld
ADD * FROM obja
ADD * FROM objb
SELECT SEARCH $SYSTEM.SYSTEM.CWIDE
SET HEAP 20000 BYTES
BUILD
obja
objb
$SYSTEM.SYSTEM.CRTLMAIN
-set heap_max 20000
-obey $SYSTEM.SYSTEM.LIBCOBEY
Example B-3. Setting the INSPECT Attribute in Binder and nld
Binder nld
FILE objfile
CHANGE INSPECT ON
-change inspect on objfile