Structure layout in big/little endian modes

Ian Lance Taylor iant@google.com
Thu Nov 24 08:09:00 GMT 2011


Владимир Андреев <volodya@netfolder.ru> writes:

> Yes, it's the case. But I want more intuitive code without definitions of
> masks, shifts, etc. Thats why I chose bit fields.

Using bitfields is fine as long as you understand that they are not
portable between processors.  If you want portability, don't use
bitfields.

Ian



More information about the Gcc-help mailing list