Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12607 Discussions

How to reduce code footprint for lwIP

Altera_Forum
Honored Contributor II
1,401 Views

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. 

?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
577 Views

I&#39;m in a hurry or else I&#39;d be more help. 

 

In the software design doc up on the altera site under NIOS II, it talks about settings to reduce your foot print size. Some ideas are Small C library, no clean exit, etc.... 

 

Good-luck
0 Kudos
Reply