[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 14:54:57 -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 #4, bug #50811 (project avr-libc):
You're correct, there's no reason when printf isn't being used to use those
linker options. However:
* realistically at least some linker options are at least somewhat black magic
to many users.
* printf() is particularly likely to go from unused to used during debugging,
during which large swings in code size may be extra confusing
For these reasons, I still think adding something to the documentation would
make sense. It could be as simple as one sentence explaining what you just
explained:
"Note that if your program doesn't end up calling vfprintf(), using the
printf_min linker flags will increase code size because it forces the
vfprintf() function to be included even though it isn't used."
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50811>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, anonymous, 2017/04/15
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, Dave Hylands, 2017/04/16
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, anonymous, 2017/04/17
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, Dave Hylands, 2017/04/17
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot,
anonymous <=
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, Dave Hylands, 2017/04/17
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, Joerg Wunsch, 2017/04/17
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, anonymous, 2017/04/17
- [avr-libc-dev] [bug #50811] using -Wl, -u, vfprintf -lprintf_min causes program to grow a lot, Joerg Wunsch, 2017/04/18