Garst R. Reese wrote:
The C specs do not define whether bit fields are allocated from the MSB down or the LSB up. Different compilers do different things. Some have proprietary switches (e.g. using #pragma xxxx) to allow the order to be swapped. I can't remember what GCC offers you in this regard.Hi Dmitry, I think the problem we were having is big endian vs little endian. Checking. If so, sorry for noise. GarstDmitry wrote:Oops... where are bitfields? ~d
Regards, Steve