------- Additional Comments From ghazi at gcc dot gnu dot org  2005-06-10 14:22 
-------
(In reply to comment #30)
> Subject: Re:  GCC should combine adjacent stdio calls
> On Fri, Jun 10, 2005 at 01:49:54PM -0000, joseph at codesourcery dot com 
wrote:
> > Not that I really see the benefit of printf merging in any case; without 
> > statistics showing its effects on real code it seems any size benefit 
> > could easily be wiped out by inhibiting the sharing of strings used in 
> > more than one printf because instead they get merged with the adjacent 
> > different strings.
> > 
> This is a good point.  Kaveh, do you think you'd have time to do
> some timings on things like GCC bootstraps or other code bases
> that use stdio extensively?
> Diego.

I have the cpu time, but it seems premature.  Your patch as it stands only 
optimizes two adjacent printf calls.  Not printf with putc or puts and none of 
the f* variants, right?  And GCC uses mostly the f* variants.  This is like 
asking for tree-ssa benchmarks when the framework was in but before any new 
passes were written.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21982

Reply via email to