[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] avr-gcc printf optimisation ?
From: |
Anton Erasmus |
Subject: |
[avr-gcc-list] avr-gcc printf optimisation ? |
Date: |
Tue, 16 Dec 2008 22:24:58 +0200 |
Hi,
I notice that gcc replaces printf with puts if the argument is a simple string
which ends in "\r\n". Is there way one can disable this optimisation ? I use a
macro which replaces printf(<format string>, ...) with printf(PSTR(<format
string>), ...).
i.e. puts the format string in flash. Unfortunately when printf is replaced
with puts, the format
string ends up in RAM in stead of in flash.
Regards
Anton Erasmus--
A J Erasmus
- [avr-gcc-list] define const char, Wynand Weyers, 2008/12/15
- RE: [avr-gcc-list] define const char, Schwichtenberg, Knut, 2008/12/15
- [avr-gcc-list] avr-gcc printf optimisation ?,
Anton Erasmus <=
- 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, 2008/12/17