// Compiler version last used for testing: clang 5.1 // Please update this information when this file changes
// A compiler barrier, forcing the C++ compiler to invalidate all memory assumptions staticinlinevoid compiler_barrier() {
__asm__ volatile ("" : : : "memory");
}
// x86 is TSO and hence only needs a fence for storeload // However, a compiler barrier is still needed to prevent reordering // between volatile and non-volatile memory accesses.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.