This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to suggest putc/fputs over printf("string") or printf("\n")
- To: egcs-patches at cygnus dot com
- Subject: Re: patch to suggest putc/fputs over printf("string") or printf("\n")
- From: Eberhard Mattes <mattes at azu dot informatik dot uni-stuttgart dot de>
- Date: Sat, 16 Jan 1999 22:09:45 +0100 (MET)
> - Splitting printf("foo %s", str) into two function calls will almost always
> result in larger code.
This may result in _slower_ code, as some implementations of printf()
turn on buffering temporarily if the stream is unbuffered, that is,
"foo " and str may be written with one write() call instead of two.
--
Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>