> -----Original Message----- > From: > [email protected] > [mailto:avr-gcc-list-bounces+eweddington=cso.atmel....@nongnu. > org] On Behalf Of Pink Boy > Sent: Wednesday, December 17, 2008 2:26 PM > To: [email protected] > Subject: Re: [avr-gcc-list] avr-gcc printf optimisation ? > > > Joerg Wunsch sez, > > > In hosted mode (which is the default), you are not allowed > > to replace library functions by your own implementation. > > Either use -ffreestanding, or use a non-conflicting name > > instead. > > I have a question, unrelated. I use my own non conflicting printf > that looks like, > > int d_printf_P(int vebose, PSTR *c, ....); > > What gets me is that it seems like each call to printf consumes > a lot of code space, 100 bytes or so. Is that normal or am I > doing something wrong? It's annoying because 20 printf's is 2K > of code space.
It sounds like the code is being inlined in all of those places. _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
