Follow-up Comment #2, bug #50811 (project avr-libc):

Ok, with printf("foo: %d\n, 42), the program is indeed smaller with by 264
bytes when -Wl,-u,vfprintf -lprintf_min is used than when none of the printf
linker flags are used.

I guess this is a wishlist item really: it would be nice if using printf_min
didn't end up adding 1000 or so bytes to the program size when variadic
vfprintf() invocations don't happen at all.
I suppose given the realities of how the linker works that's unlikely.  At
least the issue deserves a mention in the discussion of these options in the
vfprintf() documentation (that they can end up making your program a lot
bigger, rather than smaller).


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?50811>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to