What's the relationship between processor'

2019-08-19 21:54发布

In my mind, the Python interpreter is simulate what a CPU run binary code.

And, processor will have a call stack when you invoke a function, Python as well.

So, is there a corresponding between the Python stack frame and processor's call stack? Like when we invoke a function in Python interpreter, it made a new stack frame, and what happened to processor is it push esp, mov ebp, esp, and so on.

0条回答
登录 后发表回答