as i mentioned in the previous email lwip got 2 main type memorys, one is
ram_heap which defined in mem.c and the size of it is MEM_SIZE, another one
is memp_memory which defined in memp.c and size of it is total of size
((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)).

It is easy to understand ram_heap variable, but memp_memory more difficult
to understand if your compiler got option to make preprocessor file let turn
on it to make memp.i preprocessor file then you understand memp_memory
variable.

hope some lines can help you.

On Tue, Feb 2, 2010 at 7:27 PM, jinwei younger <bioyoun...@gmail.com> wrote:

> Hi,
> Thanks a lot for PHAM ANH THIEN and Kieran's reply.
> To Kieran, do you mean that when my system is running, use the
> function stats_display( ) to monitor how much of memory?
> Is there a way to calculate MEM_SIZE by the parameters MEMP_NUM_PBUF,
> MEMP_NUM_RAW_PCB, MEMP_NUM_NETCONN and so on? I think the MEM_SIZE depends
> on the parameters defined in lwipopt.h.
>
> Thanks.
>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to