pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Example 109 EXTADDR, EXT32ADDR, and EXT64ADDR Declarations
INT .EXT i;
STRING .EXT s;
INT .EXT g = 'SG' + 0;
REAL .EXT r;
INT .EXT32 i32;
STRING .EXT32 s32;
INT .EXT32 g32 = 'SG' + 0;
REAL .EXT32 r32;
INT .EXT64 i64;
STRING .EXT64 s64;
INT .EXT64 g64 = 'SG' + 0;
REAL .EXT64 r64;
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
• EXT32ADDR
• EXT64ADDR
170 Pointers