$Bitpacking/de: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: $Bitpacking/de
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Zurück zu den [[local compiler directives/de|lokalen Compilerdirektiven]]. | |
| 2 | + | ||
| 3 | + | # \$BITPACKING | |
| 4 | + | ||
| 5 | + | Die lokale Compiler Direktive \$BITPACKING dient dem komprimieren von records. | |
| 6 | + | ||
| 7 | + | Die lokale Compiler Direktive \$BITPACKING kennt die Schalter ON und OFF. | |
| 8 | + | ||
| 9 | + | Die lokale Compiler Direktive {\$BITPACKING ON} sagt dem Compiler, das er bei der Verwendung des reservierten Wortes packed alle Datentypen der Struktur an Bitadressen ausrichten soll. | |
| 10 | + | ||
| 11 | + | Beispiel: | |
| 12 | + | ||
| 13 | + | ``` pascal | |
| 14 | + | {$BITPACKING ON} | |
| 15 | + | Type | |
| 16 | + | TMyRecord = packed record | |
| 17 | + | B1,B2,B3,B4 : Boolean; | |
| 18 | + | end; | |
| 19 | + | ``` | |
| 20 | + | ||
| 21 | + | Hinweis: | |
| 22 | + | ||
| 23 | + | - Die lokale Compiler Direktive \$BITPACKING wird im Compiler Mode MacPas ignoriert. Im Compiler Mode MacPas werden alle packed record an Bitadressen ausgerichtet. | |
| 24 | + | - Das reservierte Wort bitpacked kann unabhängig von der Direktive \$BITPACKING das Ausrichten an Bitadressen erzwingen. | |
| 25 | + | ||
| 26 | + | --- | |
| 27 | + | *From the Free Pascal wiki, page "$Bitpacking/de", 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).* |
