This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bit field order in C166 compiler

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.

Parents
  • 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

Reply
  • 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

Children
No data