SET and PACKEDSET types

Modula-2 SET and PACKEDSET types occupy a variable number ofbytes, depending on the number of elements in the set.

- If a set has 8 or fewer elements it occupies 1 byte of storage
- A nine to sixteen element set will occupy 2 bytes of storage
- A seventeen to thirty two element set will occupy 4 bytes of storage
- Sets of greater than thirty two elements occupy the minimum number of machine words required to hold the set.

**Note**: Storage for sets of greater than thirty two elementsis allocated on a machine word basis. i.e. Multiples of 4 bytes for 32-bit code and2 bytes for 16-bit code.