Every processor has certain locations it can quickly access
When a programming language tells the CPU to copy data from one variable to another, the CPU uses its registers:
int x,y;
y=5;
x=y;Data movement impacts performance far more than computation on modern systems
Compilers are bad at register blocking and understanding where particular data is being stored
In optimizing C, you can keep the number of variables used in a function fewer than there are registers in the cpu, so there's no variable spilling, and thus it doesn't matter where the data is stored (ie it's all in the cpu)
The default location the cpu will go to after a reset