pTAL Reference Manual (H06.08+)

Structures
HP pTAL Reference Manual523746-006
9-48
Declaring Simple Pointers in Structures
Declaring Simple Pointers in Structures
A simple pointer is a variable that contains the memory address of a simple variable or
an array. When you declare a simple pointer inside a structure, the form is:
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. The data type determines how much data the
simple pointer can access at a timea byte, word, doubleword, or quadrupleword.
.
.EXT
.SG
.SGX
are indirection symbols (see Table 2-7 on page 2-7).
identifier
is the identifier of the simple pointer.
identifier
VOLATILE
type
.
.EXT
.SG
.SGX
REFALIGNED
( 2
8
)
;
,
VST627.vsd