Gcc and a Garbage Collector.

Andrew Pinski pinskia@physics.uc.edu
Sat Aug 20 00:29:00 GMT 2005


On Aug 19, 2005, at 8:16 PM, Stephane Wirtel wrote:

>> It is a very simple mark and sweep GC and not realy useful for most  
>> other projects.
>> You mark each struct for GCable and all static and global variables  
>> too.  You cannot
>> have only a reference to a GCable on the stack (it has to be in a GC  
>> marked variable
>> too) when the gc is called.
> Thanks,
>
> And in the gcc documentation, can you tell me where can I find an
> example or a description ?

in the internals manual of GCC, it is part of the sources of GCC and  
nothing
else.  You can pull it out and use it in a different project but that  
would
very stupid.

Anyways the docs are:
http://gcc.gnu.org/onlinedocs/gccint/Type-Information.html#Type- 
Information

-- Pinski



More information about the Gcc mailing list