Question
a.) Given that a procedure A calls procedure B in Intel 64-bit architecture, for each task below involved in the call and execution of procedure
a.) Given that a procedure A calls procedure B in Intel 64-bit architecture, for each task below involved in the call and execution of procedure B, indicate whether the task is performed by the assembly code for procedure A or procedure B by writing in A or in B for each part below.
i) transferring control back to procedure A when procedure B is finished
ii) transferring control from procedure A to procedure B code when procedure B is called
iii) preparing the stack for the execution of procedure B
iv) preparing the stack for return to procedure A
v) saving the location where execution resumes in procedure A
b.) Assume procedure A calls procedure B as in part (a) above. For each item below, indicate whether the information will likely reside in the procedure A stack frame, the procedure B stack frame, both stack frames, or neither stack frame, by writing one of in A, in B, in both or in neither next to each part. Indicate the best choice based on what must be true.
i) actual arguments in excess of 6 passed to procedure B
ii) procedure A resume location
iii) value of %ebp for procedure A while in procedure B
iv) procedure Bs final return value (if any)
v) the size (in number of bytes) of the procedure A stack frame
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started