pTAL Reference Manual (H06.08+)
Equivalenced Variables
HP pTAL Reference Manual—523746-006
11-5
Declaring Nonstructure Equivalenced Variables
Declaring Nonstructure Equivalenced
Variables
Nonstructure equivalenced declarations include simple variables, pointers, and arrays.
VOLATILE
specifies that the value of this variable must be maintained in memory, not in a
register. Each reference to a VOLATILE data item causes the data item to be read
or written to memory even when code is optimized. Based on the order of reads
and writes in the source code, VOLATILE also causes that precise order of
memory references to be preserved, again, when code is optimized.
type
If referral is present, must be STRING or INT; otherwise, type is any data
type except UNSIGNED.
identifier
is the identifier of the equivalenced variable to be made equivalent to previous-
identifier.
referral
is the identifier of a previously declared structure, structure layout, or structure
pointer.
VOLATILE
identifier
,
[
=
type
previous-identifier
+
-
offset
index
]
;
(
referral
)
VST629.vsd










