Sign in Join
Wiki copytemporary

$Bitpacking

Deutsch · English

Back to local compiler directives.

The local compiler directive $BITPACKING:

Example:

pascal
...
{$BITPACKING ON}
...
Type
   TMyRecord = packed record
     B1, B2, B3, B4 : Boolean;
   end;

Note: 1. The local compiler directive $BITPACKING is ignored in MacPas compiler mode. In the MacPas compiler mode, all packed records are aligned to bit addresses.
2. The reserved word Bitpacked can force alignment to bit addresses, regardless of the $BITPACKING directive and regardless of the $MODE.

See also


From the Free Pascal wiki, page "$Bitpacking", 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.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.