"Execution frame" is a term that is used in interpreted languages, in particular Python. This is a completely different execution model from C #. The closest equivalent is the scope block in the C # method, a piece of code enclosed in brackets with curly braces. Although the Python execution frame can also extend to the function body, it is now equivalent to the stack frame in C #. This is another term for an activation frame.
The C # compiler recognizes declarations that are local to the scope block in C #. There is no runtime, it only recognizes the stack stack, which is active for the life of the whole method. The difference is trivially verified by the compiler by simply declaring the sum of all local variables in all blocks of the scope as an activation frame. This is a luxury that the Python interpreter cannot afford.
source share