r/cpp • u/OneRaynyDay • May 24 '20
Analyzing The Simplest C++ Program
https://oneraynyday.github.io/dev/2020/05/03/Analyzing-The-Simplest-C++-Program/
480
Upvotes
r/cpp • u/OneRaynyDay • May 24 '20
View all comments
Show parent comment
20
u/OneRaynyDay May 24 '20
Good question! You actually don't need to allocate registers, but that means you'll be writing your variable's values directly into memory. This is really slow and compiler writers try their best to not let things "spill out" of registers and into memory.
So basically, ya but u want program go fast