Structure layout in big/little endian modes

Ian Lance Taylor
Thu Nov 24 08:09:00 GMT 2011

Владимир Андреев <> 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


More information about the Gcc-help mailing list