What's the relationship between processor's call stack and Python's frame object?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 18:23:50

问题


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.

来源:https://stackoverflow.com/questions/55843979/whats-the-relationship-between-processors-call-stack-and-pythons-frame-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!