bit fields

Johan j at j.nl
Sun Aug 29 07:57:11 UTC 2021


On Saturday, 28 August 2021 at 08:20:25 UTC, Walter Bright wrote:
> I have been working on implementing bit fields for #ImportC, 
> with invaluable help from Iain.
>
> And I've learned an unexpected lesson. Bit fields with DMC and 
> Microsoft VC are simple. Bit fields on clang and gcc are 
> complicated and messy. I've had a hard time duplicating that 
> behavior.

A link to an article that demonstrates what kind of complexities 
are involved: http://jkz.wtf/bit-field-packing-in-gcc-and-clang

-Johan



More information about the Digitalmars-d mailing list