kernel malloc()
Posted: Wed May 05, 2004 9:41 am
Hi
I'm looking for a plugin malloc() to use in my kernel (rather than reinvent the wheel myself) and found the Doug Lea's malloc.
I've read through the documentation and the Comments at the start but it looks really daunting. What sort of modifications will I need to make to it to use it for my kernel?
Also, are there any other alternatives that are ok, or is the dlmalloc the best one to use?
The other things that i've noticed are that it uses stdio.h. Surely, as we have no library, this can't work, or do we have to write these routines ourselves.
Otherwise, what algorithms could I use if I have to write the malloc myself?
thanks
srg
I'm looking for a plugin malloc() to use in my kernel (rather than reinvent the wheel myself) and found the Doug Lea's malloc.
I've read through the documentation and the Comments at the start but it looks really daunting. What sort of modifications will I need to make to it to use it for my kernel?
Also, are there any other alternatives that are ok, or is the dlmalloc the best one to use?
The other things that i've noticed are that it uses stdio.h. Surely, as we have no library, this can't work, or do we have to write these routines ourselves.
Otherwise, what algorithms could I use if I have to write the malloc myself?
thanks
srg