[Mono-list] x86 JIT

John Zedlewski zedlwski@Princeton.EDU
Wed, 11 Jul 2001 14:21:27 -0400


> There is one big technical drawback with using gcc that I didn't
mention
> in my earlier message, namely that accurate GC is going to be a
problem,
> so you may have to stick with conservative GC.

I don't see why this should be a problem just because no current gcc
language uses precise GC. Whenever an object is instantiated, you can
just have gcc emit a quick, inline call to a GC runtime function, like:
"describe_to_gc(void* obj_addr, size_t obj_size)." The runtime GC will
also have access to class descriptions, so it can easily look at the
memory addresses stored in reference fields and build the whole
reference tree however it wants to.

--JRZ