avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes


From: anonymous
Subject: [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot
Date: Mon, 17 Apr 2017 02:18:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.8.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]