> -----Original Message----- > From: > avr-gcc-list-bounces+eweddington=cso.atmel....@nongnu.org > [mailto:avr-gcc-list-bounces+eweddington=cso.atmel....@nongnu. > org] On Behalf Of David Brown > Sent: Monday, February 16, 2009 2:31 PM > To: avr-gcc-list@nongnu.org > Subject: [avr-gcc-list] Re: Code optimistaion in AVR Tiny13 > > Another important point in getting code as small as possible > is to use > -combine and -fwhole-program - it can significantly improve code, > especially for functions that are called only once but live > in different > modules.
In my tests on real world programs, it have decreased the code by up to 25%. And it has also *increased* the code by up to 25%! Unfortunately I don't know what about the code that causes it to increase. But clearly it is not always a win and can be a detriment. So be sure to check your code sizes when you use this. _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list