On Fri, 2005-11-04 at 19:53 +0100, Joerg Wunsch wrote:
> Vincent Trouilliez <[EMAIL PROTECTED]> wrote:
> 
> > Now that I have enabled dwarf-2 and recompiled gcc, I noticed that I
> > still loose the annotations, if I use the -O3 optimisation flag, but
> > not if I use -O or -Os.
> 
> Keep in mind that -O3 will inline a lot of functions.  That
> could really confuse the dissassembly annotation.

Ah, yet another reason to not use O3 then, as I stopped using _delay_ms
precisely to avoid all this in-line stuff... so I don't fancy the
compiler adding some more in my back ;-)

-Os seems the best for me, code is massively smaller than -O or -O3, yet
still readable I find, when I do need to look at the output.


--
Vince



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to