Subj : Re: Memory Barriers, Compiler Optimizations, etc. To : comp.programming.threads From : Joseph Seigh Date : Mon Feb 07 2005 07:47 am On Mon, 07 Feb 2005 11:17:07 +0100, Alexander Terekhov wrote: > > Yes. Note that I said "volatile abuse". Simply put, when you write > something like > > volatile int i = 1; > > int main() { > return --i; > } > > you better be prepared that smart compiler can tranform it to > > int main() { > } > The variable i doesn't have an external attribute. It can't be seen anyway. -- Joe Seigh .