Collecting more frequently
Mark Mitchell
mark@codesourcery.com
Mon Mar 20 09:23:00 GMT 2000
>>>>> "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
More information about the Gcc
mailing list