This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc, powerpc and bit field operations
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Rycerz Roman-G11565 <roman dot rycerz at motorola dot com>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 29 Oct 2003 15:36:21 -0600
- Subject: Re: gcc, powerpc and bit field operations
Hi Roman,
Bitfields are supposed to be packed into a word (i.e., an int).
If you want them to be packed into something smaller (or larger), you have to do it yourself using masks and shifts to read/write.
HTH,
--Eljay