Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

How 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.

?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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