Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C's bit-fields ABI isn't great either. In particular, the order of allocation of bit-fields within a unit and alignment of non-bit-field structure members are implementation defined (6.7.2.1). And bit-fields of types other than `_Bool`, `signed int` and `unsigned int` are extensions to the standard, so that somewhat limits what types can have bitfields.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: