Binder Manual (G06.24+, H06.03+)
Using Binder
Binder Manual—528613-003
2-12
Binding Pascal Programs
To bind a C program, either include the commands in a command file or enter them
interactively. The following example shows a sample Binder session for binding a D-
series C program:
Note the following points about this example:
•
The file MAINOBJ is the user’s main object file.
•
The file OBJ1 is a user file.
•
The value of 10 PAGES in the SET HEAP command refers to the maximum heap
size for the target object file.
•
You must set MODE to NOUPSHIFT if you specify code block names and entry
point names. MODE NOUPSHIFT directs Binder to differentiate between
uppercase and lowercase characters in names.
•
This example program uses the wide data model. The memory-model file named
after the SELECT SEARCH command would have been named CLARGE if the
program used the large memory model or CSMALL if the program used the small
memory model. See the HP C/C++ Programmer’s Guide for additional information.
Binding Pascal Programs
The Pascal compiler generates one bindable code file for each source language
compilation unit. Pascal code files are not executable. To produce an executable
Pascal object file, you must invoke Binder and use it to do the following:
1. Bind together your separately compiled modules.
2. Bind in the appropriate version of the Pascal run-time library file for C-series
programs only.
3. Specify a heap size before issuing the BUILD command. You can specify the heap
size in PAGES (1024 words), WORDS, or BYTES.
As with a C program, you can bind a Pascal program by including the commands in a
command file or entering them interactively. The following example shows a sample
Binder session for binding a D-series Pascal program:
SELECT CHECK PARAMETER LENIENT
ADD * FROM mainobj
ADD * FROM obj1
SELECT SEARCH $system.system.cwide
SELECT RUNNABLE OBJECT ON
SELECT LIST * OFF
SET HEAP 10 PAGES
BUILD exobj
ADD * FROM mainobj
SELECT SEARCH (extraobj, moreobj)
SELECT RUNNABLE OBJECT ON
SELECT LIST * OFF
SET HEAP 2 PAGES
BUILD exobj