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]

Re: Collecting more frequently


>>>>> "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

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