Mail Archives: djgpp/1996/12/22/02:53:04
On Thu, 19 Dec 1996, Alaric B. Williams wrote:
> an implementation of garbage collection that can be turned on at
compile time would be nice, too...
I don't see how a garbage collecting could be built into a
general-purpose memory allocator of a C library. Since in C, every
pointer is just an address of a memory chunk, how would you relocate data
(to compact used memory) without breaking C code? IMHO, there's no
simple way to even know which pointers are unused and can be freed.
Maybe in C++, but not in C. Do I miss something?
- Raw text -