Structure alignment problem
Matthew.R.Wette@jpl.nasa.gov
mwette@grover.jpl.nasa.gov
Sat Nov 2 07:49:00 GMT 2002
> Does some know why I get this with GCC 2.95.3 (arm-elf) ?
>
> typedef struct {
> unsigned char Var1 __attribute__((packed)) ;
> } mystruct;
>
> sizeof(mystruct) = 4 !!
alignment? (think about arrays of mystruct)
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list