[PATCH] printf optimization

Joseph S. Myers jsm28@cam.ac.uk
Tue Jun 4 06:49:00 GMT 2002


On Tue, 4 Jun 2002, Mark Dettinger wrote:

> This is a patch for GCC 3.1 that introduces a printf optimization:

If you want to do this you'll need to read and follow the GNU Coding
Standards for formatting (and the GCC coding conventions), send in an
assignment (and possibly an employer disclaimer), write the code so as to
integrate with the existing printf builtin function optimization support
(see c_expand_builtin_printf in c-common.c) rather than a whole new
mechanism, as a patch against mainline (not 3.1), and include testcases as
described in the GCC coding conventions.  I suggest also including
benchmarks showing how much testcases get speeded up (noting that if all
arguments are constant, the other optimizations already present may come
into play) and discussing the design and implementation with Kaveh who
implemented the previous printf optimization support.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list