lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] about memory managemnet


From: K.J. Mansley
Subject: Re: [lwip-users] about memory managemnet
Date: 05 Nov 2004 10:43:40 +0000

On Fri, 2004-11-05 at 07:59, jack W wrote:
> hi lwip-users
> 
>  i am reading the source codes, i want to know the difference between mem.c 
> and memp.c
> i think they all are used to manage the memory ? 

mem.c maintains a memory heap for targets that do not have support for
this in the operating system.  On other systems, these functions (e.g.
mem_malloc()) will just be defined to be the normal OS ones (e.g.
malloc()).

memp.c maintains a pool of fixed size memory chunks used for common
structures such as PCBs and so on.  This avoids the need to constantly
allocate and free new blocks of memory: the same ones can be used over
and over again.

Hope that helps,

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]