This Is Why They Call It a Weakly-Ordered CPU
A question: Why is it the CPU architecture that is weakly ordered, if it's the compiler that is reordering the statements? Couldn't you have a compiler on a weakly ordered arch that preserved order, and a compiler on x86 for example that could reorder your statements?Isn't it the language spec / compiler that is in charge of this, rather than the CPU? I'd like to know more about this.