HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 52
the conversion only once. If the Program Analyst finds a control
variable that is a floating-point type, or a default REAL or DECIMAL type
and the Program Analyst can determine that the starting value, limit,
and step (if present) are all integers, the line number of the FOR loop
is reported. A FOR loop that meets those criteria is very inefficient
because the control variable has to be converted. In addition, the FOR
loop can produce incorrect results.
After the information about the MAIN subunit is display, the cursor is at
the beginning of the Line Range field at the top of the screen. To move
to a different part of the program, enter a line range or a single line
number, or press a softkey to move to the previous or next subunit. If
you select a single line, the line itself is listed at the bottom of the
screen. The data type of each numeric variable is displayed.
The Program Analyst cannot accurately detect conversions that occur
during a call to an external routine, an intrinsic, a subprogram, or a
function. Conversions may be generated if an actual parameter does not
match the declared parameter. Also, any conversions that take place to
determine which CASE to execute in a SELECT structure are not reported.
If your program uses GLOBAL OPTION DECIMAL and does not have OPTION
DECIMAL or OPTION REAL statements in each of the subunits, issue the
VERIFY command before entering the Program Analyst . This notifies all
the subunits that they will be executing in DECIMAL mode and ensures that
you get the most accurate information about conversions.
The Suggest COPTIONs Screen. The purpose of this screen is to predict
the benefit of each of the compiler options (COPTIONs) in terms of
generated code savings.
The Suggest COPTIONs screen estimates the number of words of compiled
code that would be eliminated through the use of each compiler option.
The information is displayed in four columns. The first column contains
the names of all the compiler options. If the subunit or program
currently being displayed has a compiler option in effect, the code
savings is displayed in the Current column. If the program or subunit is
not current taking advantage of that option, the potential savings is
displayed in the Potential column. The final column indicates whether
any features that would prevent the use of an option are being used. The
Program Analyst cannot estimate the actual size of a compiled subunit.
When you enter the Suggest COPTIONs screen, the cursor is positioned
under the first letter in the subunit or program name. You can type a
subunit name or line number or press a softkey to move to another subunit
or line.
The Replace GOSUBs Screen. The purpose of this screen is to replace
GOSUB statement with the subroutines the reference. This improves
performance in some situations.
If a program has GOSUBs that execute many thousands of times, the