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-08 by John Samperi

At 09:15 AM 8/06/2008, you wrote:
>Secondly, the compiler defaults to maximum optomization, which would 
>seem to be
>a poor choice since most projects surely start in the debug phase!

In the avrfreaks.net site, home of winAvr, it has been claimed the
opposite by people "who know". It was a request by some of these people
that made the latest versions default to -Os instead of the original -O0.

By the way with -O0 some of the stuff does not work.

If things get "optimized" away, or TERMINATED as I claim, probably
something has not been declared volatile. It seems to fix 99% of
the problems.

Ah the joys of working with assembler. :-)


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

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.