This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] analysis of global statics and removal associated vdefs and vuses
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