[Top][All Lists]

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

Re: [avr-gcc-list] Compiler optimisation and volatile variables

From: Rob Prowel
Subject: Re: [avr-gcc-list] Compiler optimisation and volatile variables
Date: Thu, 2 Feb 2006 13:29:55 -0800 (PST)

gcc -O0

(capital oh) (zero) means optimization level zero.  
Try it...btw: you really should consider using
"volatile" for this purpose.

PS - as a safety issue I always use -O zero in code
I'll be embedding and then hand code any optimizations
I feel are necessary.

--- Willem Jacobus Marais <address@hidden>

> Dear All
> Is there a compiler option that prevents the
> compiler from removing
> variables when it optimises the code, rather
> declaring each variable as
> volatile?
> I'm using avr-gcc version 3.4.5 with the
> optimisation option -Os
> Thanks in advance
> Regards
> Willem Marais
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

reply via email to

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