lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] a possible bug


From: Paul Sheer
Subject: [lwip-users] Re: [lwip] a possible bug
Date: Wed, 08 Jan 2003 22:29:07 -0000

>     I've seen this sort of thing in a few places.  On my system, using 
> types smaller than int results in slower code and more space being used. 
>  This is true for many risc cpu's.  Perhaps there should be an 
> additional data type for general purpose int's (or just use int itself?).
> 

i agree

k&r defines an "int" as the "natural integer size of the architecture".
the space saving introduced by many of the u8_t/u16_t variables is really
not worth the effort IMO and creates alignment problems also.

in my code i redefine err_t to int also

> for(i = 0; i < PBUF_POOL_SIZE; ++i)

at another level LwIP should have a plug-in memory allocator
so that you can use any memory allocator you like. another package
that does this is the zlib library for example.

-paul

[This message was sent through the lwip discussion list.]




reply via email to

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