Is it worthwhile using C\'s bit-field implementation? If so, when is it ever used?
I was looking through some emulator code and it looks like the registers for the c
One use for bit fields used to be to mirror hardware registers when writing embedded code. However, since the bit order is platform-dependent, they don't work if the hardware orders its bits different from the processor. That said, I can't think of a use for bit fields any more. You're better off implementing a bit manipulation library that can be ported across platforms.