TAL Programmer's Guide
Equivalencing Simple Variables
Using Equivalenced Variables
10–4 096254 Tandem Computers Incorporated
Also avoid equivalencing a simple variable to an extended indirect array:
INT .EXT array[0:999];
INT(32) addr = array;
309
Automatic extended data segment
ARRAY
.
.
.
ptr to ARRAY ADDR
Avoid Odd-Byte Equivalencing
If you equivalence a STRING variable to an odd-byte array element, the compiler
converts the odd-byte index to the previous word boundary as shown in the diagram
and issues a warning.
Avoid the following practice:
STRING a[0:1];
STRING b = a[1];
303
A[0] A[1] B
Avoid Equivalenced Arrays
You cannot equivalence arrays to other variables. Avoid the following practice:
INT a[0:5];
INT b;
INT c[0:5] = a; !Error
INT d[0:5] = b; !Error