avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Compiling gcc-avr : how to enable dwarf-2 option ?


From: Vincent Trouilliez
Subject: Re: [avr-gcc-list] Compiling gcc-avr : how to enable dwarf-2 option ?
Date: Sat, 05 Nov 2005 01:32:35 +0100

On Fri, 2005-11-04 at 19:53 +0100, Joerg Wunsch wrote:
> Vincent Trouilliez <address@hidden> 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





reply via email to

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