B
Bo Persson
Dombo skrev 2012-06-28 22:26:
That's because VS2010 only targets platforms where the hardware does the
cache sync. So it doesn't have to do anything.
It also means that the code can easily be non-portable, because "works
on x86" doesn't mean "works elsewhere".
Bo Persson
Op 28-Jun-12 21:16, Ian Collins schreef:
I don't know what the C++ 11 standard says about this but, on VS2010 it
does nothing special to keep volatile variables out of the cache.
That's because VS2010 only targets platforms where the hardware does the
cache sync. So it doesn't have to do anything.
It also means that the code can easily be non-portable, because "works
on x86" doesn't mean "works elsewhere".
Bo Persson