"" - C, .
, , , . , .
As an example, you can write some kind of uncommitted queue, and you rely on the fact that your architecture (x86?) Already comes with a highly ordered memory model, so your naive stores and loads imply sufficient synchronization if the emitted code follows the order of the source code . Pairing the platform ensures that this compiler barrier allows you to get the right machine code (although this, of course, is undefined behavior from the point of view of C).
source
share