lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] memory alignment in 32bit architecture


From: Piero 74
Subject: [lwip-devel] memory alignment in 32bit architecture
Date: Fri, 20 Mar 2009 16:51:55 +0100

Hi all

I have a big doubt:

in my lwip porting, on arm7 architecture (so, 32bit architecture), i have these defines in cc.h (the compiler is IAR):

#define PACK_STRUCT_BEGIN   _Pragma("pack(1)")
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END     _Pragma("pack()")
#define PACK_STRUCT_FIELD(x) x

are they right?

i'm thinking if it could be correct in 32bit architecture use _Pragma("pack(4)")


any comment?
thanks
Piero

reply via email to

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