Re: malloc() implementation
- From: Flash Gordon <spam@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 10:22:24 +0100
Karsten Jung wrote:
Hello together,
We have to make our own implementation of malloc() under Linux. Does
anybody can give me a hint where to start?
Our implementation should only work under Linux.
Read the glibc code (if "pollution" from LGPL code is not a problem) and ask on a Linux group, remembering that you will have to write your own free and realloc code, and you have to deal with the issue of whether other library routines are calling your malloc or the standard one. Personally I would not bother without a *very* good reason (which might exist).
You can't write a malloc routine in standard C which might be part of why it is in the standard library, hence the suggestion of asking in a Linux group.
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
.
- Follow-Ups:
- Re: malloc() implementation
- From: John Devereux
- Re: malloc() implementation
- References:
- malloc() implementation
- From: Karsten Jung
- malloc() implementation
- Prev by Date: Re: Simplicity has a future
- Next by Date: Re: Simplicity has a future
- Previous by thread: malloc() implementation
- Next by thread: Re: malloc() implementation
- Index(es):
Relevant Pages
|