pTAL Reference Manual (H06.03+)

Equivalenced Variables
HP pTAL Reference Manual523746-005
11-10
Equivalenced Simple Pointers
Equivalenced Simple Pointers
An equivalenced simple pointer declaration associates a new simple pointer with a
previously declared variable.
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.
Figure 11-2. Equivalenced Simple Variables
INT w[0:1];
STRING b = w[0];
INT(32) d = b;
w[0]
w[1]
B[0] B[1]
B[2] B[3]
D
VST302.vsd
VOLATILE
type
identifier
( referral )
previous-identifier
,
[
=
+
-
offset
index
]
;
VST630.vsd
.
.EXT
.SG
.SGX