pTAL Reference Manual (H06.08+)

Structures
HP pTAL Reference Manual523746-006
9-54
Simple Variable
Additional rules are given in subsections that describe each kind of redefinition in the
following topics:
Simple Variable on page 9-54
Array on page 9-55
Definition Substructure on page 9-56
Referral Substructure on page 9-59
Simple Pointer on page 9-61
Structure Pointer on page 9-63
For information about redefinitions outside structures, see Section 11, Equivalenced
Variables.
Simple Variable
A simple variable redefinition associates a new simple variable with a previous item at
the same BEGIN-END level of a structure.
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
is any data type except UNSIGNED.
identifier
is the identifier of the new simple variable.
previous-identifier
is the identifier of a simple variable, array, substructure, or pointer previously
declared in the same structure. You cannot specify an index with this identifier.
VOLATILE
type identifier
=
previous-identifier
;
VST706.vsd