nld and noft Manual
Converting From Binder to nld and noft
nld and noft Manual—520384-003
9-5
Comparing Binder Commands to nld Options
In Example 9-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-10.
Example 9-3 sets the INSPECT object file attribute to ON for the loadfile objfile.
Example 9-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 9-3. Setting the INSPECT Attribute in Binder and nld
Binder nld
FILE objfile
CHANGE INSPECT ON
-change inspect on objfile