18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

base pointer of<br />

LIST<br />

word 1 LIST(1) LIST(2)<br />

word 2 LIST(3) LIST(4)<br />

word 3 LIST(5) LIST(6)<br />

word 4 LIST(7) LIST(8)<br />

word 5 LIST(9) LIST(10)<br />

Figure 6-11. Array Storage<br />

When a system attribute is multidimensional, packing takes place at the data-storage level only; the<br />

array pointer words are unpacked. Thus the statements:<br />

and<br />

normally dimension is 2<br />

the system has a LIST(*/2)<br />

reserve LIST(*,*) as 3 by 4<br />

specify and allocate storage to LIST as shown in figure 6-12.<br />

As with field and bit packing, intrapacking specifications depend on computer implementation. Table<br />

6-2 shows permissible intrapacking factors for common 32-bit wordlength machines. Other implementations<br />

have their permissible factors specified in the implementation manuals.<br />

LIST(1,1) LIST(1,2) word 1<br />

Base Pointer LIST(1,3) LIST(1,4) word 2<br />

LIST(2,1) LIST(2,2) word n<br />

LIST(2,3) LIST(2,4) word n+1<br />

LIST(3,1) LIST(3,1) word m<br />

LIST(3,3) LIST(3,4) word m+1<br />

Row Pointers<br />

Attribute values<br />

Figure 6-12. Array Storage<br />

268

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!