Stack frame and structure of functions in a Linux Process stack and Process

Source: Internet
Author: User

Stack frame and structure of functions in a Linux Process stack and Process

It mainly understands the differences and connections between the stack frames of Linux processes and the stack frames of functions.


<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KCgoKyc/samples + samples/pvfizzMTatObH + samples/samples + samples/OxNbQzOG1vbXEuq/K/samples + samples/K/ keys/K/keys/K/bXEu + 62r7zHwry + keys + LPMtcTL + keys/K/keys/7yqfKx8vm18W9 + LPMtcTWtNDQtvix5LuvtcTSu7j2tq/keys "http://www.2cto.com/uploadfile/Collfiles/20150306/2015030609524682.png" alt = "\">
The content stored in stack frames generally includes the following: 1) return address and parameter of the function 2) temporary variables: including non-static local variables of the function and other variables automatically generated by the compiler 3) Save the context: this includes the relationship between the caller and the called in the stack provided by the process by the functions in the process that need to ensure constant register values before and after function calls. 1) how do I access the called user from the caller? Call2) How to return the caller from the called user? Ret3) How do callers control the called (transferred by the called function parameters )? Parameter 4) How is the value of the called operator reflected (Transfer of return values )? Registers eax and edx

Two other problems are worth looking at. 1) Transfer Method of the returned value of the called function. 2) Call convention of the function.

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.