Question: C Code: int main(int argc,char **argv) { long x=1,y=2,z=3; z = top(x,y); return z; } long top(long x,long y) { x = x + y;

C Code:
int main(int argc,char **argv) { long x=1,y=2,z=3; z = top(x,y); return z; } long top(long x,long y) { x = x + y; return leaf(x,y); } long leaf(long y,long z) { z = y - z; return z; }
Assembly:

Please explain the %rdi %rsi %rax %rsp part as i already understand the others , thanks in advance !
Fill the table with appropriate values right before the instruction executes, not after the instruction finished executing. Instructions are dependent and values may change as instrucitons execute
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
