This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Disabling CSE passes and GC?


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]