avr-gcc-list
[Top][All Lists]
Advanced

[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. ;-)




reply via email to

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