2 ms·
> Bit fields are portable since ages, since C89. Wrong. N1256 (ISO C99 spec), for instance, explicitly states in 6.7.2.1.10: The order of allocation of bit-
by tempodox 4y ago
> Bit fields are portable since ages, since C89.
Wrong. N1256 (ISO C99 spec), for instance, explicitly states in 6.7.2.1.10:
The order of allocation of bit-fields within a unit
(high-order to low-order or low-order to high-order)
is implementation-defined.
Look it up.
- rurban 4y agoIn theory yes, in practice no. And the committee usually has no idea.