Storage Allocation
Allocation of storage is done as an offset to a base address, which is associated with a block of storage. Assignment of storage locations is done sequentially by a simple algorithm:
offset = next; next = next + n; return offset;
In our compiler, the next variable for allocating variables is blockoffs[blocknumber].