Extreme optimisation

GCC is crazy.  It recognises a printf(‘foo\n’) and turns it into the equivalent puts(‘foo’) instead.

builtins.c has all types of similar transformations including printf(‘%c’, v) to a putch(v) and printf(‘%s’, v) to fputs().

Avatar
Michael Hope
Software Engineer