pTAL Reference Manual (H06.03+)
Pointers
HP pTAL Reference Manual—523746-005
10-12
Declaring Simple Pointers
Declaring Simple Pointers
A simple pointer declaration associates an identifier with a memory location that
contains the user-initialized address of a simple variable or array.
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 one of the following data types:
•
BADDR
•
CBADDR
•
CWADDR
•
EXTADDR
•
FIXED [ (fpoint ) ]
•
INT
•
INT (16)
•
INT (32)
identifier
VOLATILE
type
.
.EXT
.SG
.SGX
;
,
REFALIGNED (
2
8
)
:= initialization
VST676.vsd










