VOLATILE [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
VOLATILE
VOLATILE is an HP Pascal Option.
You can apply the VOLATILE compiler option to a variable to specify that
the memory location associated with the variable may be modified by other
processes. Using VOLATILE signals the optimizer that a specified
variable must not reside in a register, but must always be updated.
Syntax
$VOLATILE$
Location The VOLATILE compiler option is allowed after the ":" in a
VAR declaration. It is also allowed after a "^" in a
pointer type or variable declaration.
Example
TYPE
ptrtype = ^$VOLATILE$ rectype;
VAR
intptrr : ^$VOLATILE$ integer;
recvar : $VOLATILE$ rectype;
MPE/iX 5.0 Documentation