PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] bitfield
Date: Monday, 02 Nov 2020, 09:33:39


    > Message Posted By: Unknown
    >
    > If our allocation of bitfields doesn't add up to a multiple of 8, will
    > that cause problems in terms of alignment?, assuming we just use
    > sizeof(struct).

No.  The C compiler will add extra bits as necessary to
enforce alignment.

--Stan-
PREV INDEX NEXT