lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: Worlds smallest web server with Ethernet, worlds smalle


From: Adam Dunkels
Subject: [lwip-users] Re: Worlds smallest web server with Ethernet, worlds smallest[lwip]PPP)
Date: Wed, 08 Jan 2003 22:37:06 -0000

Hi Rod!

On Monday 08 April 2002 20.50, Rod Boyce wrote:
> It a work in progress I'm rewriting the file system and httpd example to
> cope with the unusual memory model of the 8051.  Otherwise just adding a
> serial driver and a timer there are hardly any changes.  I'm planning on
> adding a PPP layer once I get the example working properly but SLIP will do
> for a start.  I have some PPP code from the PSIStack that is GNU that with
> major rewrite will operate I think OK as it is one of the simplest and most
> complete but there is still some work to do getting it to handle a single
> buffer.  I'm also planning to measure all the optimized C code and see if
> the SDCC compiler can do a better job than writing it in a trick fashion
> (sorry Adam).

I'm not sure that I agree with you on that the uIP code is written in a trick 
fashion. Since the code is written with 8-bit architectures in mind, a lot of 
stuff that would otherwise be done with longs, htons(), and similar stuff, is 
done with character arrays. In is probably possible with a good optimizing 
compiler and 32-bit longs to get better optimizations, but because many 8-bit 
compilers choke slightly on 32-bit longs, I decided against using them in 
uIP.

/adam
-- 
Adam Dunkels <address@hidden>
http://www.sics.se/~adam

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




reply via email to

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