lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Struct packing/alignment problems


From: K.J. Mansley
Subject: Re: [lwip-users] Struct packing/alignment problems
Date: 04 May 2004 14:43:58 +0100

On Tue, 2004-05-04 at 01:04, Timmy Brolin wrote:
> Mandatory 
> alignment would render all those STRUCT_PACK macros unnecessary, 
> resulting in cleaner code, and significantly increased portability (ANSI 
> C conformant, no alignment problem, and no need to define architecture 
> specific struct packing macros)

Padding of the start of the struct does not guarantee the alignment of
subsequent elements in that struct, so the packing is still required.

Kieran





reply via email to

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