← Back to context

Comment by nwallin

5 hours ago

> Did they actually need all variables to be stable at the point of any memory access?

One of the most important optimizations that a compiler can do is keeping a variable in a register and never even bother letting it hit memory in the first place. If every variable must get its own RAM address and the value at that RAM address must be faithful to a variable's "true" value at any given instruction, we should expect our software to slow down by an order of magnitude or two.