[PATCH] analysis of global statics and removal associated vdefs and vuses

Zack Weinberg zack@codesourcery.com
Mon Aug 30 17:00:00 GMT 2004


Paolo Bonzini <bonzini@gnu.org> writes:

>> You'd be surprised.  For instance, at -O0 GCC can spend 20% of its
>> runtime calling (s)printf for assembly output, and this from
>> complicated code that reads memory a lot ...
>
> Is the time spent in (s)printf or in the GCC code surrounding the calls? 
> You only have a point if the time is spent outside the C library.

I don't have numbers in front of me, but I remember its being
something like 5% (s)printf, 15% callers.

zw



More information about the Gcc-patches mailing list