On Tue, Nov 25, 2008 at 08:03:10AM +0100, Schmid Alexander wrote:
>
> Hello,
> I use tiny Board with MPC5200B and Toolchain 1.1.1 and BSP6. I do
> communication over ARCNET with an Motorola 68332!
> In the communication i have a : struct{ short x; int y;..}
> The 68332 aligns on 2 Byte boundary!
struct foo {
int16_t x;
int16_t y;
} __attribute__ ((packed));
http://gcc.gnu.org/onlinedocs/gcc-3.1.1/gcc/Type-Attributes.html
Regards,
ladis
--
ptxdist mailing list
[email protected]
