|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-09-24 06:31:32
Tomas Puverle wrote:
>
> Here are my two cents:
>
> On other processors, a compiler could make the assumption that unless
> it sees an explicit memory barrier (or some code which it cannot analyse)
> it can just cache the value of a variable (whether or not declared as
> volatile).
(repost)
No, the C++ standard does not grant the compiler such freedom, although the
MMU can certainly use a cached copy. ;-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk