Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] AvrStudio4 (2008), WinAVR (2007-05...) and Dragon problem debugging C code (jtag)

2008-06-07 by dpharris@telus.net

Cat-

Yes, I have had the same problem.  I wish someone in the know would comment.  

Firstly, the compiler appears to optimize out pieces of code that are required,
and without so much as a warning.  It is possible that the compiler move the
your setting of iStepX etc further on in the code to reduce the use of
temporaries.  However, at least in the development phase it is useful to see
what the values are during debugging, and short statements used solely to
monitor a variables value are often optimized out. 

Secondly, the compiler defaults to maximum optomization, which would seem to be
a poor choice since most projects surely start in the debug phase!

David


Quoting Cat Hotmail <catalin_cluj@hotmail.com>:

> Hmmm, I think I figured it out:  It was the optimization setting.
> I changed it to "0" and now my lines... work :-)
> 
> Cat
> 
> --------------------------------------------------
> From: "Cat Hotmail" <catalin_cluj@hotmail.com>
> Sent: Saturday, June 07, 2008 4:13 PM
> To: <AVR-Chat@yahoogroups.com>
> Subject: [AVR-Chat] AvrStudio4 (2008), WinAVR (2007-05...) and Dragon 
> problem debugging C code (jtag)
> 
> > Hi,
> >
> > I'm having this weird problem whereby I am able to debug, and to step
> > through the program, but it just ignores/skips some of the lines.
> >
> > In the code below, I'll show the skipped lines with \\<<< at the end.
> >
> > Any ideas, please?
> >
> > Thanks,
> >
> > Cat
> >
> >
>  
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.