Suppose that we want to call a prodecure which has the following C prototype: void compute (long x, long y, long nl, long n2, long n3, long 24, char* name, long k, long n, long y, long di7 The moment...


Need help with CS question


Suppose that we want to call a prodecure which has the following C prototype:<br>void compute (long x, long y, long nl, long n2, long n3, long 24, char* name, long k, long n, long y, long di7<br>The moment we call the procedure, the return address gets pushed onto the stack at address Ox2460. Assuming that the procedure call uses the<br>standard calling conventions which we have discussed in class, indicate where each of the following arguments are stored.<br>• If the argument is stored in a register, then give the name of the register. For example. %rax.<br>• If the argument Is stored In memory, then glve the absolute memory address where t is stored, in hex. For example, 0x4000.<br>Argument y is stored in<br>Argument n1 is stored in<br>Argument n4 is stored in<br>Argument k is stored in<br>Argument d is stored in<br>

Extracted text: Suppose that we want to call a prodecure which has the following C prototype: void compute (long x, long y, long nl, long n2, long n3, long 24, char* name, long k, long n, long y, long di7 The moment we call the procedure, the return address gets pushed onto the stack at address Ox2460. Assuming that the procedure call uses the standard calling conventions which we have discussed in class, indicate where each of the following arguments are stored. • If the argument is stored in a register, then give the name of the register. For example. %rax. • If the argument Is stored In memory, then glve the absolute memory address where t is stored, in hex. For example, 0x4000. Argument y is stored in Argument n1 is stored in Argument n4 is stored in Argument k is stored in Argument d is stored in

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here