HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

9-: 16
|
v
|--------------------------|
| |
| NMPROG file |
| (NMPRG) |
|--------------------------|
|
v
RUN STEP
|
v
|--------------------------|
| |
| Executing |
| Program |
| |
|--------------------------|
Figure 9-1. Steps to Compile and Run a Program
The compilation step translates a BASIC SAVE file into object code,
machine instructions in binary form, and stores those instructions in a
relocatable object module in a specially formatted disk file with file
code NMOBJ. See the
HPLink Editor/XL Reference Manual
for more
information about linking object files.
The running step binds the program to referenced externals from an
Executable Library, moves the program and its data stack into main
memory, and initiates execution.
NOTE The difference between a BASIC SAVE file and a program file is
important. A BASIC SAVE file contains HP Business BASIC/XL program
source code in a special format. The GET command can make that
program the current program in the interpreter. A program file
contains executable program code and runs under the operating
system.
The compiling, linking, and running steps can be performed individually,
or the first step and successive steps can be performed with a single
command.
Table 9-6 gives the syntax of every command that performs one or more
steps of the compilation process. It also gives the type of the default
operating system file $OLDPASS if the command is successful. (See the
MPE XL Commands Reference Manual
for more information on $OLDPASS, and
the :RUN MPE XL command.) Explanations of the command parameters follow
Table 9-6.
Table 9-6. Compilation Process Commands
---------------------------------------------------------------------------------------------
|| | | |
| Step(s) | Command from Interpreter | Command from | Effect on |
|| |Operating System | $OLDPASS |
|| | | |
---------------------------------------------------------------------------------------------
|| | | |
| Compilation | | :BBXLCOMP [text =] | If
objfile
is not|
|| |
infile
[,[obj=] | specified and |
| | COMPILE [
infile
]|
objfile
[,[list=] | command succeeds, |
|| |
listfile
] ] | then $OLDPASS is |
| | { ,} | | the NMOBJ |
| | [ { ;} OBJ[ =]
objfile
] | | relocatable |
| | [ ] | | object file. |