Hi, I am new to C166 compiler. I would like to know how is the order of the bit field in a structure. i.e. the first member would be a LSB or MSB. Thanks in anticipation. Viral.
but that just shows you how the compiler happened to compile that particular piece of code on that particular occasion - you have no guarantee that it will always do it that way under all conditions. For the authoritative statement, you need to consult the Manual - and if you upgrade, you will have to re-check the new Manual as the compiler is under no obligation to retain the same implementation. Bitfields are notoriously quirky, and may not even be particularly efficient. You might find that it's just as well to do your own masking, etc