Bitfields of greater than field size

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Feb 4 17:46:25 UTC 2000


> I have been told that the standard allows:
> 
> struct foo {
>      long xx : 128;
> };

> This is a field that takes up 128 bits of space, but only really
> uses sizeof(long) * 8 bits.  We have to agree on where the padding
> goes.  I couldn't find it in the data layout spec.
> Our compiler puts it after the 'real' bits.

Isn't that already specified by the base API (gABI, psABI)? (not that
I have access to the base API...)

Regards,
Martin




More information about the cxx-abi-dev mailing list