lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] Problem With dns.c Using 32-Bit Compilers


From: John Keil
Subject: RE: [lwip-users] Problem With dns.c Using 32-Bit Compilers
Date: Fri, 18 Jan 2008 08:24:28 -0500

Jifl wrote:
>
> This implies to me that your compiler is not packing the structure. Are
> the structure packing macros (PACK_STRUCT_BEGIN/STRUCT/END) implemented in
> your cc.h? And correct for your compiler? Or you may need to provide
> arch/bpstruct.h and arch/epstruct.h and define PACK_STRUCT_USE_INCLUDES,
> depending on how structure packing is implemented in your compiler.

Unfortunately, TI's compiler does not support any kind of structure packing
for their C6000 DSP's (no #pragma pack, or anything similar).  This is
always a bit of a headache when interfacing to other devices, but
fortunately hasn't caused us too many problems with lwIP.  In fact, the
dns.c file is one of the few we have to modify (there are also overlays of
32-bit structures made on non-32-bit aligned arrays in dns.c, which don't
work for us).

I didn't realize the "sizeof" reporting 12 bytes instead of 10 was unique to
our environment, so I thought I'd bring it up.  Thanks for the input!

John Keil





reply via email to

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