#Garbage collection
What!? No one is interested in a garbage-collecting memory allocation package
for C and C++ (apparently only for SAS compilers)? Maybe it's because I posted
the message in the General Programming section, or I wasn't clear that it is
for C and C++ programs?
Oh, well. If anyone is interested, it can be ftp'd from parcftp.xerox.com,
file /pub/gc/gc.tar.Z, or ftp://parcftp.xerox.com/pub/gc/gc.tar.Z. It seems to
work well. I blythly (sp?) replaced malloc and realloc in a program on my unix
box at work with GC_malloc and GC_realloc, and commented out all of the free
calls, and it seems to work fine. (Actually, something went wrong, but the
author found the bug.) The only problem I read of in the Amiga port was that
it knows nothing about the difference between chip and fast memory. Probably it
only deals with fast memory, but I would think most of you don't build complex
dynamic data structures that need chip memory.
Clay