Instruction Reordering: Your Code Doesn’t Always Run in the Order You Wrote It
When writing code, you naturally expect instructions to run one after the other in the exact order they appear. For example:
x=1;
y=2;
You’d expect x = 1 to complete before y = 2 starts.
But in reality, modern CPUs and compilers don’t always execute...
nihcas.hashnode.dev5 min read