[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Re: sprintf
From: |
David Kelly |
Subject: |
Re: [avr-gcc-list] Re: sprintf |
Date: |
Mon, 2 Mar 2009 09:50:28 -0600 |
User-agent: |
Mutt/1.4.2.3i |
On Mon, Mar 02, 2009 at 10:16:39AM -0500, David VanHorn wrote:
> >
> > Disable optimizations, -O0 I believe, and the source code debugger
> > will more closely track the actual lines of code.
>
> Ouch! That takes me from about 1.8k to over 7k.
Yes, but the larger code is a more literal translation of your source
code which the debugger can more easily map source code 1:1 to generated
assembly.
-O0 is handy when learning C and wanting to see an assembly translation.
Code should be debugged using the same optimization one will ultimately
ship code no matter the debugger seems to jump around.
--
David Kelly N4HHE, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.