3 ms·
That's the only one I've ever seen, and it's really just checking for the absence of '%'. What if it could convert: printf("parsed: %s to %i\n", x, y); To:
by bobmcnamara 2y ago
That's the only one I've ever seen, and it's really just checking for the absence of '%'.
What if it could convert:
printf("parsed: %s to %i\n", x, y);
To:
puts("parsed: ");
puts(x);
puts(" to ");
_puti(y);
putc('\n');
Well. Then we'd have a lot more function calls overhead. Maybe something like:
_printf_nofloat("parsed: %s to %i\n", x, y);
- Someone 2y agoIt’s not the only one it uses. It also removes calls to printf("") and changes single character printf calls to putchar calls See https://github.com/gcc-mirror/gcc/blob/ef32bd8c866a1b8a97f627fad44a42f29757c816/gcc/gimple-fold.cc#L4041 https://github.com/gcc-mirror/gcc/blob/ef32bd8c866a1b8a97f62...