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


|
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to