[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
`packed' is a reserved word. According to ISO-7185 Pascal it can precede `array' and `record' type definitions to indicate that memory usage should be minimized for variables of this type, possibly at the expense of loss of speed.
As a GNU extension, `packed' can also be applied to section 8.2.10.1 Subrange Types.
The reserved word `packed' is defined in ISO-7185 Pascal.
According to ISO standard, only packed arrays of char with lower bound 1 qualify as strings of fixed length. GNU Pascal neither requires `packed' nor the lower bound of 1 here.
program PackedDemo; |
`DateRec' has 24 bits = 3 bytes in total; `Dates' has 3000 bytes.
section 9.187 Pack, section 9.289 Unpack, section 9.257 SizeOf, section 9.5 AlignOf, section 9.26 BitSizeOf.