[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-gcc printf optimisation ?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] avr-gcc printf optimisation ? |
Date: |
Wed, 17 Dec 2008 06:19:07 +0100 (MET) |
Anton Erasmus <address@hidden> wrote:
> Is there way one can disable this optimisation ?
Eric already spotted that you are supposed to use printf_P in that
case, so that should essentially answer your question.
In general, optimizations that benefit from internal knowledge of the
library are turned off with -ffreestanding. However note that this
will also turn off e.g. the compiler using a constant 14 for
`strlen("Hello, world!\n")', and place an actual call to strlen()
instead.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- RE: [avr-gcc-list] define const char, (continued)
- RE: [avr-gcc-list] define const char, Schwichtenberg, Knut, 2008/12/15
- [avr-gcc-list] avr-gcc printf optimisation ?, Anton Erasmus, 2008/12/16
- RE: [avr-gcc-list] avr-gcc printf optimisation ?, Weddington, Eric, 2008/12/16
- RE: [avr-gcc-list] avr-gcc printf optimisation ?, Weddington, Eric, 2008/12/16
- Re: [avr-gcc-list] avr-gcc printf optimisation ?, Anton James Erasmus, 2008/12/17
- Re: [avr-gcc-list] avr-gcc printf optimisation ?, Colin D Bennett, 2008/12/17
- Re: [avr-gcc-list] avr-gcc printf optimisation ?, Joerg Wunsch, 2008/12/17
- Re: [avr-gcc-list] avr-gcc printf optimisation ?, Pink Boy, 2008/12/17
- RE: [avr-gcc-list] avr-gcc printf optimisation ?, Weddington, Eric, 2008/12/17
Re: [avr-gcc-list] avr-gcc printf optimisation ?,
Joerg Wunsch <=