[gclist] GCC 3.0 and GC?

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
18 Jun 2001 16:50:03 +0200

Daniel Wang <danwang@CS.Princeton.EDU> writes:

| >From 
|  http://gcc.gnu.org/gcc-3.0/features.html
| New Languages and Language specific improvements: 
|   The GNU Compiler for the Java(TM) language (GCJ) is now integrated and
|   supported, ...  and the Boehm conservative garbage collector.
| Other significant improvements: Garbage collection used internally by the
|    compiler for most memory allocation instead of obstacks.
| So does this mean GCC is now using the Bohem conservative collector? Or is
| gcc using a different GC internally. 

GCC is now using the Bohem collector.

| ... I'm generally, curious as to why the
| GCC developers decided to take the plunge and adopt GC. 

Using a GC in lieu of obstack hackery makes it easier to fix some
obscure bugs.  That also simplifies considerably the compiler.

-- Gaby