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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!