This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug tree-optimization/21982] GCC should combine adjacent stdio calls


------- Additional Comments From ghazi at gcc dot gnu dot org  2005-06-10 15:05 -------
(In reply to comment #33)
> Subject: Re:  GCC should combine adjacent stdio
>  calls
> On Fri, 10 Jun 2005, ghazi at gcc dot gnu dot org wrote:
> Since putc and puts are typically faster than printf (not needing to parse 
> the input) and we optimize printf of constants into them, it's not clear 
> that merging printf with such functions would be an improvement either.

You're probably right that it's not a speed win, but it may be a code size win 
for -Os.  I'd like to benchmark that too if possible.


-- 


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


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