- 2.2.6.17. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.6. Types
2.2.6.17. Structured Types Alignment (packed modifier)
2.2.6.17. Structured Types Alignment (packed
modifier)
By default, the data in a structured type is aligned on double-word
boundaries for faster access. However it's possible to include the
reserved word packed to enable data compression.
For example,
type
TEmployee: = packed record
name: String[80];
appointment_id: Word;
stage: Byte;
end;
Starting from TMT Pascal 4, the
setting defined by the {$OA}
directive can be overridden by specifying the packed reserved word.
- 2.2.6.17. -