Compiler barrier
An instruction to the compiler — and only to the compiler — not to move memory accesses across a given point in the code.
In GCC and Clang the classic spelling is asm volatile("" ::: "memory"): empty assembly that claims it may read and write any memory at all. The optimizer must then assume every value cached in a register may be stale and every earlier store must have happened. The Linux kernel calls it barrier(), C11 offers atomic_signal_fence, and MSVC had _ReadWriteBarrier until it was deprecated in favor of proper atomics.
No machine instruction is emitted. That is both the point and the trap: the CPU is still free to reorder, so multi-core code needs a real memory fence. A compiler barrier suffices only where a single core is involved, such as between a program and its own signal handler, or around memory-mapped I/O on a simple microcontroller.