>>> [email protected] 30.1.2009 15:14 >>>
> ----------------------------------------
> Hi,
> 
> I'm not seriously contemplating porting lwIP stack to PIC, 
> but out of curiosity I did some experiments.
> In about two hours I was able to get it to compile with SDCC.
> 
> 

>Hi Kusti,
>
>What was the rough memory size of the compiled stack ( FLASH, data
RAM) ?
>
>Vasek

The map file shows:

65984 program addresses used

but I would not draw any conclusion from that yet. A lot depends on (I
guess)
a few .h files where you define types used various things.

http://www.sics.se/~adam/lwip/doc/lwip.pdf

quotes: 22646 bytes when compiled for 6502

RAM usage estimates are useless at this point I think.

All the buffer sizes are determined by constants in the headers
IIRC that you can get away with a few kB of RAM (OTOH
that is the make/brake size for many PICs).

A lot of RAM is used for SDCC parameter passing so tuning
might be required.

I'm not saying it wouldn't take some carefull tuning to get this
to run on a PIC. But then again this is a full IP/UDP/TCP/DHCP
implementation that supports multiple concurrent sockets,
this is no proof of consept or mine-is-smallest-web-server
stack.

br Kusti


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to