This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Structure layout in big/little endian modes
- From: Ian Lance Taylor <iant at google dot com>
- To: ÐÐÐÐÐÐÐÑ ÐÐÐÑÐÐÐ <volodya at netfolder dot ru>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Nov 2011 23:55:17 -0800
- Subject: Re: Structure layout in big/little endian modes
- References: <CAJXPUY+H_iS7=iRdxiF+JS0iycJV7d12XK3+1k=NU69=D0se_A@mail.gmail.com>
ÐÐÐÐÐÐÐÑ ÐÐÐÑÐÐÐ <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