Re: malloc() implementation
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Wed, 31 May 2006 20:03:37 GMT
Clever Monkey <clvrmnky.invalid@xxxxxxxxxxxxxxxxxxx> writes:
Flash Gordon wrote:
John Devereux wrote:
Flash Gordon <spam@xxxxxxxxxxxxxxxxxx> writes:True, as long as you call is something other than malloc ;-)
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.
What you *can* do though is statically allocate a memory buffer, then
allocate out of that with your own "malloc".
It all depends on what the OP actually wants to achieve.
Wouldn't interpositioning allow you to define a default global symbol
"malloc" that would essentially overwrite the Standard one?
If the implementation happens to support it, but such support is not
required by the standard.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- References:
- malloc() implementation
- From: Karsten Jung
- Re: malloc() implementation
- From: Flash Gordon
- Re: malloc() implementation
- From: John Devereux
- Re: malloc() implementation
- From: Flash Gordon
- Re: malloc() implementation
- From: Clever Monkey
- malloc() implementation
- Prev by Date: Re: Help is need immidiately
- Next by Date: Re: C Pointer problem
- Previous by thread: Re: malloc() implementation
- Next by thread: Re: malloc() implementation
- Index(es):
Relevant Pages
|