Bitfields of greater than field size
mendell at ca.ibm.com
mendell at ca.ibm.com
Fri Feb 4 19:35:32 UTC 2000
I doubt it, since it isn't legal C code.
Mark
> 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