lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] [lwip] Problems with struct member aligment within lwIP


From: Konrad, Guido
Subject: [lwip-users] [lwip] Problems with struct member aligment within lwIP
Date: Wed, 08 Jan 2003 22:54:21 -0000

Hi,

porting lwIP to ARM7TDMI with ADS 1.1 if encounter problems with the member
alignement within structures. I've found the comment in arp.c to compile the
structure arp_hdr with __packed directive. Nevertheless it seems that some
more structures need this. Background is that the ARM compiler always
constructs structures with an aligment of 4! Only for structures preceeding
this __packed directive the alignment is 1. But this structures can not be
carsted to non packed structures, nor casted implizitly to e.g. void*.

Has anybody an answer?

Regards,

 Guido Konrad


[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]