I want to make my own Malloc
Posted
by Unknown
on Stack Overflow
See other posts from Stack Overflow
or by Unknown
Published on 2009-04-09T02:55:03Z
Indexed on
2010/04/30
12:37 UTC
Read the original article
Hit count: 159
I want to make my own malloc/free so I can make a precise copying allocator.
Any gurus have any tips and suggestions?
I have a few questions for now:
- Should I just malloc large chunks of memory, and then distribute from that so I don't have to call the system calls?
- How are copying collectors usually done? I would imagine that this part is a bit complicated to do efficiently. My naive implementation would just malloc a block the size of the remaining objects which would require 2x the space.
© Stack Overflow or respective owner