How Computers Read Code: Compilers, Machine Code, and the Call Stack

There are always two versions of your program: the one you wrote and the one the machine runs. A processor understands only a tiny menu of operations — read bytes, write bytes, do math, jump around the instruction list, jump only if a flag is set. A compiler's entire job is to translate your variables, loops, and functions down into that menu. Once you see that translation, a huge amount of "why is my code slow, why won't this binary run, why is Python like that" stops being mysterious and becomes mechanical.