Embedded Garbage Collector (egc)
EGC is a garbage collector designed for embedded use. It is only
designed for embedded use, and even so it may not be suitable for your
application. Look at the
Boehm collector,
too, it is more general and better debugged than this one (although this one
has seen a lot of use in my company without any problems). This collector
is specifically designed for:
- Fixed memory - The amount of memory available to the GC is fixed and wil
not dynamically increase at runtime. This is nice for embedded systems, of
course, since you can bound and guarantee the memory assigned to the collector.
- Concurrent collection - The collector is only concurrent, all collection
and finalization occurs from GC threads.
- Large memory spaces - EGC was designed to be used in gigabyte memory
spaces. It attempts to be very efficient and takes advantage of anything
I could think of to speed it up. It is somewhat wasteful of memory to do
this.
If you still want it, see the
SourceForge page
It only currently works on Linux on PowerPC and IA32 (Intel) and IA32
is not well tested. Look in the file named egc.h for instructions on
how to use the collector.