This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Structure layout in big/little endian modes


ÐÐÐÐÐÐÐÑ ÐÐÐÑÐÐÐ <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]