GCC Explorer - an interactive take on compilation
Posted Jun 2, 2012 21:27 UTC (Sat) by
vonbrand (subscriber, #4458)
In reply to:
GCC Explorer - an interactive take on compilation by alankila
Parent article:
GCC Explorer - an interactive take on compilation
Oh, come on. The compiler surely could figure out that this is printf, scan the format string and replace the whole printf("Look at this: %d %x\n", a, b) call by something along the lines of puts("Look at this: "); do_fmt_d(a); do_fmt_x(b); putchar('\n');. Probably pointless (if that is your performance bottleneck, you can do something along those lines yourself).
(
Log in to post comments)