Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/22/03 05:15
Read: times


 
#36930 - RE: volatile keyword
I meant does ANSI guarantees this behavior?

Thanks

Andy Chang wrote:
-------------------------------
Hi there,

If a variable is declared as volatile as in

void foo(void) {

volatile int i;



ACC = i;

}



Does this force the compiler to bypass optimization and generates code to read i into the ACCUMLATOR?



Thanks



List of 18 messages in thread
TopicAuthorDate
volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
RE: volatile keyword            01/01/70 00:00      
volatile keyword and not-so-optimizer            01/01/70 00:00      

Back to Subject List