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: 139

Filed under:
|
|
|

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:

  1. Should I just malloc large chunks of memory, and then distribute from that so I don't have to call the system calls?
  2. 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

Related posts about garbage-collection

Related posts about c