> Take, e.g., a structure like this:
>
> struct weird {
> int x;
> char c;
> };
>
> the ABI requires that "x" is aligned on a 4 byte boundary and that
> means that sizeof(struct weird) is required to be a multiple of 4.
>
> That's the only way to make arrays "struct weird bits[10];"
> work correctly.
Indeed; I was focused on gratuitous padding if you had `int c' above.
--
meem
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code