Suppose the following declarations have been made:
var i: integer; x: array[1..100] of real;This would give i an offset of 4 and x an offset of 8 (the initial offset is 4; since x is double, its offset must be 8-aligned.). The total storage is 808. A reference x[i] would generate the code:
(AREF X (+ -8 (* 8 I)))
The effective address is: %fp, minus
the offset of x, minus the size of x,
plus the expression (+ -8 (* 8 I)).
Contents    Page-10    Prev    Next    Page+10    Index