What is the evaluate stack in msil?

Source: Internet
Author: User

The evaluate stack is a very important data structure in msil, which can associate your applications with memory. It looks like a stack frame (a traditional function call), but it is quite different from a stack frame. The evaluation stack can be understood as the application view, through which you can see the function parameters, local variables, temporary variables, and other information. In traditional programs, function parameters are allocated to the stack (stack space is configured during compilation), but in. net is assigned to an independent storage area (the parameter area and local variable area of the function) reserved for the function and local variables ). The program will not be able to directly access this storage region. If you want to access these parameters and local variables, you must use the command load to move them from the memory to the slot of the evaluate stack. At the same time, you can use the store command to update the content of these parameters or local variables. Evaluate that the size of each slot on the stack is 4 or 8 bytes. Since it is a stack, there must be a stack feature. The evaluate stack is also a next-generation, first-out storage structure. To balance the post-stack of function calls, before the function starts to call, the evaluate stack is empty. After the function call ends, the evaluate stack is empty. This is the same as the traditional stack frame.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.