-O2 and volatile
Marcus Binny
marcusbinny@yahoo.com
Thu Oct 2 07:46:00 GMT 2003
We sometimes find that our code doesn't work after
using -O2 GCC optimization. This is usually because
the compiler decides it can eliminate variables that
it shouldn't. These variables often reside in ISRs or
depend on multi-processor interactions.
Is there a way to find out which variables GCC decided
to eliminate?
M
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
More information about the Gcc
mailing list