HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
90 Chapter 2
Command Definitions A-B
BASICOMP
example, below. You may, however, build a USL file in the permanent file domain, then
direct the BASIC/V compiler to store the object code in this file by naming the USL file in
the BASICOMP command line. Refer to "Examples."
Use
This command may be issued from a session, job, or program. It may not be used in
BREAK. Pressing
Break suspends the execution of this command. Entering the RESUME
command continues the execution.
Examples
To compile the BASIC/V program MYPROG onto the USL named OBJECT, enter:
BUILD OBJECT;CODE=USL
BASICOMP, OBJECT
$CONTROL USLINIT
$COMPILE MYPROG
$EXIT
The above example builds the USL file, begins execution of the BASIC/V compiler and
specifies the USL named OBJECT, initializes the USL, compiles the fastsave program
named MYPROG, and then exits from the compiler.
If you do not choose to build a USL file, the BASICOMP command compiles your program
and stores the object code in the default USL file $OLDPASS.
BASICOMP
$COMPILE MYRUN
$EXIT
The above example begins execution of the BASIC/V compiler, accepts commands from
$STDINX, and specifies $OLDPASS the USL output and $STDLIST for listing output. It
compiles from the fastsave file named MYRUN into a USL named $OLDPASS, and then exits
from the BASIC/V compiler.
To run your program, enter:
PREPRUN $OLDPASS
Related Information
Commands BASIC, BASICGO, BASICPREP
Manuals BASIC/V Compiler Reference Manual
MPE Segmenter Reference Manual