Altera_Forum
Honored Contributor
21 years agoHow to reduce code footprint for lwIP
I download standalone lwIP realization from here. I use "standart" NiosII reference design. After building lwip_web_server example project I found that code footprint is near 250 Kbytes.
In README file located at : project_directory/lwip-0.7.1/readme I found next text: <div class='quotetop'>QUOTE </div> --- Quote Start --- The focus of the lwIP TCP/IP implementation is to reduce the RAM usage while still having a full scale TCP. This making lwIP suitable for use in embedded systems with tenths of kilobytes of free RAM and room for around 40 kilobytes of code ROM.[/b] --- Quote End --- So my question: what I have to modifie in project to reduce memory requirements? How to fit code footprint to <div class='quotetop'>QUOTE </div> --- Quote Start --- around 40 kilobytes of code ROM.[/b] --- Quote End --- ? If 40 Kb is too small than around 100Kb also will be OK. ?