TAL Programmer's Guide

Declaring Arrays
Using Arrays
096254 Tandem Computers Incorporated 7–5
INT Arrays
For INT arrays, the compiler allocates a word for each element:
INT a[0:2];
INT b[2:3];
INT c[-2:-1];
B[0]
C[-1]
362
B[3]
C[-2]
A[2]
B[2]
A[0]
A[1]
INT(32) Arrays
For INT(32) arrays, the compiler allocates a doubleword for each element:
D[0]
D[1]
363
INT(32) d[0:1];
REAL Arrays
For REAL arrays, the compiler allocates a doubleword for each element:
REAL r[4:5];
R[4]
R[5]
364