patch to suggest putc/fputs over printf("string") or printf("\n")

Jamie Lokier egcs@tantalophile.demon.co.uk
Sat Jan 16 21:43:00 GMT 1999


> Erm, how could the compiler turn a printf call into a macro expansion?  The
> compiler doesn't know anything about macros.  I suppose it could have its
> own concept of putc...

By virtue of putc being an inline function.

BTW, I note that in Glibc currently shipped with Red Hat 5.2, putc is
actually an _out of line_ function.  (Threading issues).

-- Jamie



More information about the Gcc-patches mailing list