[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] alignment problems
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] alignment problems |
Date: |
Thu, 08 Nov 2007 11:26:46 +0000 |
On Thu, 2007-11-08 at 11:08 +0000, Jonathan Larmour wrote:
> I'm concerned that you say that "two addresses" are only used with long,
> and one for both char and int. Does this mean that for:
> char foo[4];
> that: &foo[0] == &foo[1] ?
>
> If that is the case, I think you may have an uphill struggle.
Yeah, that confused me. Sounds like it would be sensible to think of it
as having 16-bit bytes rather than worrying about the word size. If
that's the case I think there may be problems for you in lwIP where
we've confused bytes with octets (i.e. 8 bits).
Kieran