This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: Proposal for printf functionality enchancement


On Wed, Oct 19, 2005 at 02:12:31PM -0400, James Antill wrote:
>  Or maybe you mean that if you do "int x = bar2(); int y = bar2();"
> you can optimize the second call (I could see this if you used
> sprintf() with a local char[]). But that seems far fetched, and again
> would be solved via. GCC understanding the mini-language properly.

It means that loads of foo can be hoisted across the call to printf. 
Research suggests that this is less farfetched of a benefit than you
think it is.

GCC format checking for a custom format language is an interesting
topic, which has _nothing_ to do with supporting extensions to the
function named "printf" and defined by the ISO standard; feel free to
discuss that on gcc@, where it has come up many times before.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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