This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Collecting more frequently
- To: amylaar at cygnus dot co dot uk
- Subject: Re: Collecting more frequently
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 20 Mar 2000 09:30:40 -0800
- Cc: amylaar at pasanda dot cygnus dot co dot uk, mrs at windriver dot com, gcc at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de
- Organization: CodeSourcery, LLC
- References: <20000317173433H.mitchell@codesourcery.com><200003201527.PAA27960@phal.cygnus.co.uk>
>>>>> "Joern" == Joern Rennecke <amylaar@cygnus.co.uk> writes:
>> We already do this. Look at ggc_collect for details.
Joern> Hmm, so does this heuristic take too much time? Maybe if
Joern> you change the constant from 1.3 to 1.25 or 1.5, gcc can
Joern> compile the multiply to a shift and an add?
We need to profile before we make changes like that. I'm not sure
where 1.3 came from -- Alex and Richard iterated a little bit to get
to that number by some empirical measure of goodness. I have no idea
whether the actual test instructions are significant at all, relative
to the function call overhead. But, it's certainly possible.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com