Charles Manning wrote: > 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. > Yeah, I like that refinement. Dave
Message
Re: [lpc2000] Bit-fields are brain-dead (was Looking to buy compiler)
2005-11-09 by David Hawkins