Does armcc optimizes non-volatile variables with -O0 ?
Posted
by Dor
on Stack Overflow
See other posts from Stack Overflow
or by Dor
Published on 2010-04-08T22:19:30Z
Indexed on
2010/04/08
22:23 UTC
Read the original article
Hit count: 237
int* Register = 0x00FF0000; // Address of micro-seconds timer
while(*Register != 0);
Should I declare *Register
as volatile
while using armcc compiler and -O0 optimization ?
In other words: Does -O0 optimization requires qualifying that sort of variables as volatile
? (which is probably required in -O2 optimization)
© Stack Overflow or respective owner