[uClinux-dev] structure size ????

Giovanni Casoli jive74 at gsmbox.it
Thu Mar 6 16:54:20 EST 2003


On Sat, 1 Mar 2003, thomas chen wrote:

> i have a structure that is 10 bytes long... on the target side
> (arm) arm-elf-gcc expand that to multiple of 4, ie 12 bytes...
> but on the intel pc side, it is still 10 bytes...  any way to pack
> the structure but without violating the arm alignment problem...
> ie if the structure is 9 byte long, i want to pack it to 10 instead
> of just 9....
>
> thanks
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
>

Try declaring everything volatile (members and structure self): it should
work.

Regards

Giovanni Casoli





More information about the uClinux-dev mailing list