[gclist] GC FAQ & uncooperative environments

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
Thu, 10 Jul 2003 18:16:21 +0200


Dnia czw 10. lipca 2003 05:58, Fergus Henderson napisał:

> Specifically, where it says "In cases where the C is machine-generated
> ... code to record active pointers can be generated. Even with this
> assistance, relocation of objects is not generally possible, because
> compiler-generated temporaries may also reference objects...",
> the second sentence is at best highly misleading.

Funny, I've just written a copying garbage collector for C code generated by 
my compiler :-)

Quite similar to Qish. Completely untested, as the rest of the compiler is not 
ready yet. Unlike Qish it doesn't rely on memory layout of argument lists and 
local variable lists, so it doesn't matter if the C compiler performs 
optimizations - it uses almost legal C to find pointers. The stack is 
simulated anyway for other reasons.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/