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

[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>
wrote:

> 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
>
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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