Can someone recommend me a good malloc() implementation?
I tried Doug Lea's implementation, but when trying to link it with my kernel I get some warnings (no errors) with "statements without any effect"...
malloc() implementation
-
Therx
Re:malloc() implementation
I'd write your own. They look complex but it is more persivirance than understanding needed to implement. Anyway I've attached by MM code to this file. It hasn't got a free function yet but the rest works. It doesn't use paging. It works with two stacks, used and free which contain info of the starts and lengths of peices of memory. Not too well documented but you can try it.
[attachment deleted by admin]
[attachment deleted by admin]
-
Whatever5k
Re:malloc() implementation
Well, I could write my own malloc(), that's right - that's not difficult.
But that's not what I want. I need a professional and really efficient malloc() implementation...
Thanks, anyways...
But that's not what I want. I need a professional and really efficient malloc() implementation...
Thanks, anyways...
-
K.J.
Re:malloc() implementation
This list of pre-coded Malloc/Free libs might help you:
http://www.cs.colorado.edu/~zorn/Malloc.html
K.J.
http://www.cs.colorado.edu/~zorn/Malloc.html
K.J.