HP Pascal/iX Reference Manual (31502-90022)

12- 58
All HP Standard Pascal features.
All HP Pascal predefined routines.
Predefined procedure
assert
.
Predefined function
baddress
.
Predefined function
bitsizeof
.
Predefined function
fnum
.
Predefined function
sizeof
.
Predefined function
waddress
.
Predefined function
ccode
.
RUN command parameter INFO.
RUN command parameter PARM.
MPE The compiler recognizes language features that are
available on the MPE V operating system.
Available features are the same as for MPE/iX.
Default Operating system on which the compiler is running.
Location Anywhere.
If the compiler encounters a language feature that is unavailable on the
intended operating system, it issues an error.
If you are writing a program on one operating system and intend to run it
on another operating system, use the OS option to recognize language
features that are available on the intended system.
Example
PROGRAM prog;
VAR
condcode : 0..2;
.
.
.
BEGIN
$OS 'MPE'$
condcode := ccode; {this is legal}
.
.
.
$OS 'NONE'$
condcode := ccode; {this is a compile-time error}
END.
OVFLCHECK
OVFLCHECK is an HP Pascal Option.
When the OVFLCHECK compiler option is ON, the compiler generates overflow
checking code for all integer arithmetic operations. Overflow-checking
code stops the program and issues an error message if an arithmetic
operation results in an integer overflow.
Syntax
$OVFLCHECK {ON }$
{OFF}
Default ON.
Location Anywhere, but it affects an entire statement at a time. If
OVFLCHECK is ON when the compiler processes a statement
terminator, then all arithmetic operations in the statement
are checked for overflow at run time. The OVFLCHECK option
stays ON or OFF until another OVFLCHECK option overrides