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

9-: 8
the program. If GLOBAL appears, the statement is a
GLOBAL COPTION statement; if GLOBAL is omitted, it is a
COPTION statement. A GLOBAL COPTION statement affects
every program unit in the program. A COPTION statement
affects only the program unit that contains it.
A COPTION statement overrides a GLOBAL COPTION
statement, but only while the program unit that contains
it is being compiled or executed.
i_option
One of the in-line options listed in Table 9-2.
s_option
One of the subunit options listed in Table 9-3, with the
restriction that USLINIT can appear only in a GLOBAL
COPTION statement.
A GLOBAL COPTION statement is allowed only in the main block of a
program. It changes the default options in the main program and in every
subunit. If two GLOBAL COPTION statements contain opposite options (for
example, ID TABLES and NO ID TABLES), the statement with the higher line
number sets the option. If a GLOBAL COPTION statement contains opposite
options, the rightmost reference sets the option.
A COPTION statement is allowed in the main program and in subunits. It
sets program unit options only in the program unit containing it. See
Table 9-1 and Table 9-3 for more information.
If two COPTION statements contain opposite options, the statement with
the higher line number sets the option. If a COPTION statement contains
opposite options, the rightmost reference sets the option.
In-Line verses Program Unit Options
Compiler options take effect in one of two methods: in-line or program
unit. In-line options take effect when the COPTION or GLOBAL COPTION
statement is processed normally; that is, when the statement is compiled
in line number order. They remain in effect until another in-line option
changes the setting of the option.
Program unit compiler options are processed before a program unit is
compiled. Before the first line of a program unit is compiled, the
compiler searches for and processes all of the program unit options. If
a COPTION statement does not specify a particular program unit option,
the setting of the GLOBAL COPTION statement applies. Program unit
options normally apply ONLY to the subunit in which they occur.
The Compiler Options
The compiler options are split into four general categories. Each of the
following categories control specific portions of the compilation
process:
* Listing.
* Code Space and Performance.
* Data Space.
* Miscellaneous.
Table 9-1. Listing Options
---------------------------------------------------------------------------------------------
| | |||
| Option 12 | Effect | Type | Default |
| | |||
---------------------------------------------------------------------------------------------
| | |||
| LINES [=]
num_lit
(10 <=
num_lit
| Sets the number of lines | INLINE | 60 |
| <= 9999) | per page for the compiler | | |
| | listing. | | |
| | |||