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.