3 ms·
> Bit fields in C are notoriously non-portable (exact physical layout depends on the compiler). The word "non-portable" is being thrown here too cheaply. By th
by AshamedCaptain 4y ago
> Bit fields in C are notoriously non-portable (exact physical layout depends on the compiler).
The word "non-portable" is being thrown here too cheaply. By the definition used here, technically every C program that puts two integers consecutively on a struct is non portable, either. Not just due to alignment but due to endianess, etc.