Question: sion... Problem 2 (60 points total): Consider the following source code, where R. S , and T are constants declared with #deine. The struct Inode
sion... Problem 2 (60 points total): Consider the following source code, where R. S , and T are constants declared with #deine. The struct Inode is as defined from problem 1. You will need to determine the values for R, S, and T struct Inode A[R)[S][T); int store.ele(int h, int 1, int j, struct Inode dest) A[h][1][j] " dest; return sizeof(A); In compiling this program, GCC generates the following assembly code (with-02) store_ele: movslq xedi, Xrdi movs1q Xesi, Srsi movslq Xedx, Xrdx leaq (Xrdi,xrds,4), Xrax leaq (ardi,rax,4), rdi addq %rdi, trax salq movq movq movl ret $4, Xrax %rcx,A(Arax) %r8,A+8 (%rax) $139776, Xeax Use your reverse engineering sk lls to determine the values of R, S, and T, based upon the assembly code. Show your work and the steps required to determine R. S, as needed. Place the discovered values for R. S, and T in 2.1 and T on the next page as answer 22. You may attach additional pages 2.1) Value of R, S. and T (45 points- 15 points each)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
