> Just to add to the 'never use bit-fields advice', here's an article > I found a while ago (where the author calls bit-fields brain-dead) ... I would refine this: Never use them for anything that does hardware accesses or has hardware dependencies. I use them quite a bit for packing data into software structures because this allows me to do bit-wise packing without writing a whole bunch of shifter code. Being able to bit-pack structures easily can save a lot of space when creating large numbers of them.
Message
Re: [lpc2000] Bit-fields are brain-dead (was Looking to buy compiler)
2005-11-09 by Charles Manning