Disabling CSE passes and GC?

Geoff Keating geoffk@geoffk.org
Tue Dec 10 12:05:00 GMT 2002


Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:

> Hi!
> 
> To speed up compilation I'd like to disable CSE, CSE 2 and garbage
> collecting (i.e. just dont free mem at all). I cannot find options to do
> so, though (looked at gcc 3.0 and gcc 3.2).
> 
> Can we add such options?

You can effectively disable GC in GCC 3.3 by using 
--param ggc-min-heapsize=<size in K>
and letting GCC grow the heap to a very large size before collecting.
The default is 4096, which means GCC won't run collection until the
heap is 4Mb or larger; you might want to pick a number like 128000, if
your machine has 256Mb of memory.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc mailing list