4 ms·
No, ill-defined non-portable C bitfields are evil. If you can specify bit endianness, byte endianness, spans of bytes, and so on... bitfields are mighty nice.
by milspec 11y ago
No, ill-defined non-portable C bitfields are evil.
If you can specify bit endianness, byte endianness, spans of bytes, and so on... bitfields are mighty nice.
- aswanson 11y agoBut the thing is...the spec is ill-defined in C, and given the fact the C runs on almost any processor, you can't specify endianess in the abstract and pandemonium ensues.