pTAL Conversion Guide

Pointers
pTAL Conversion Guide527302-002
10-2
Declaring Pointers
Declaring Pointers
In pTAL, pointer declarations can include the following additional syntactic elements:
A REFALIGNED clause
A VOLATILE attribute
An .SGX indirection symbol
VOLATILE
specifies that the address in the pointer and the data to which the pointer is
directed must be maintained in memory at all times rather than in a processor
register, which preserves the order of volatile reads and writes.
See Section 5, Data Allocation for detailed information about volatile data.
type
Is one of the following data types depending on whether the pointer is a simple
pointer or a structure pointer:
BADDR
CBADDR
CWADDR
EXTADDR
identifier
VOLATILE
type
.
.EXT
.SG
.SGX
;
,
REFALIGNED (
2
8
)
:= initialization
VST676.vsd