Re:gcc packed structs?
Posted: Mon Mar 29, 2004 4:37 pm
BTW, just a follow up, bitfields are nice and all, but they have a downside..the way they are implemented is left up to the compiler writters, it is implementation defined.
this means that the order the fields go (LSB first or MSB first?) and in fact the order they are placed can change between compilers (or even compiler versions technically speaking...though that's highly unlikely).
like i said before, if you are sticking with one compiler it really doesn't make a difference, but if you are worried about portability...stay away
proxy
this means that the order the fields go (LSB first or MSB first?) and in fact the order they are placed can change between compilers (or even compiler versions technically speaking...though that's highly unlikely).
like i said before, if you are sticking with one compiler it really doesn't make a difference, but if you are worried about portability...stay away
proxy