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

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

Re: [avr-libc-dev] Definition of putchar/getchar causes code growth


From: Moritz Struebe
Subject: Re: [avr-libc-dev] Definition of putchar/getchar causes code growth
Date: Fri, 04 Jul 2008 17:19:42 +0200
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Bernard Fouché schrieb:


Or have conditional compilation of headers according to the optimization required, (so in Wouter's case putchar() would be kept as a function call with -Os, but replaced with fputc() with -O2/3), however I dunno if there is a macro or something already defined allowing this without passing yet another -D option to the compiler.

You can use
#ifdef |__OPTIMIZE_SIZE__

Cheers
Morty


|


reply via email to

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