$A: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: $A
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Back to [[local compiler directives]]. | |
| 2 | + | ||
| 3 | + | The local compiler directives {\$ALIGN 1} or {\$A1}, {\$ALIGN 2} or {\$A2}, {\$ALIGN 4} or {\$A4}, {\$ALIGN 8} or {\$A8}, {\$ALIGN 16} or {\$A16} and {\$ALIGN 32} or {\$A32} determine the alignment of records. The number signifies the alignment boundary in bytes. | |
| 4 | + | ||
| 5 | + | Packing records reduces the amount of memory required at the expense of slowing down processing speed. | |
| 6 | + | ||
| 7 | + | These directives are related to the directive **\$PACKRECORDS**. | |
| 8 | + | ||
| 9 | + | Example: | |
| 10 | + | ||
| 11 | + | ``` pascal | |
| 12 | + | {$A8} // the result is the same as {$PACKRECORDS 8} | |
| 13 | + | ||
| 14 | + | {$ALIGN 8} // the result is the same as {$PACKRECORDS 8} | |
| 15 | + | ``` | |
| 16 | + | ||
| 17 | + | --- | |
| 18 | + | *From the Free Pascal wiki, page "$A", as it stood on 2020-02-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
