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: d99tibr
Subject: Re: [lwip-users] Struct packing/alignment problems
Date: Mon, 26 Apr 2004 16:02:26 +0200
User-agent: Internet Messaging Program (IMP) 3.2.1

Quoting Leon Woestenberg <address@hidden>:

> Hello all,
> 
> Timmy Brolin wrote:
> > 
> > When the alignment problem is solved, we can get rid of all thoose ugly 
> > PACK_STRUCT makros, because they are only needed for unaligned structs.
> > 
> Is this true for all cases?
> 
> I am not familiar with the most restrictive compiler alignment rules, 
> but I remember there being a discussion on the lists earlier on why 
> these PACKs had to be there for one or another.
> 
> Maybe it was a bad way to fix stuff; if we fix it up neatly we need to
> make sure we have cornered all cases.
> 
> Regards,
> 
> Leon.

Once the structs are nicely aligned I can see no reason to use struct packing 
compiler directives.
But of course, we can't be 100% certain until it have been tested.

Timmy

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/




reply via email to

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