Question: Consider the following source code, where R, S, and T are constants declared with #denne. The struct inode is as defined from problem 1. You


Consider the following source code, where R, S, and T are constants declared with #denne. The struct inode is as defined from problem 1. You will need to determine the values for R, S, and T struct lnode A[R][S] [T]; int store ele(int h, int i, int j, struct lnode dest) A[h][i]lj] -dest; return sizeof (A); In compiling this program, GCC generates the following assembly code (with -O2) store_ele: movs1q movs1a movs1q leaq leaq leaq addq leaq sala movq movq movl ret %edi, %rdi %esi, %rsi %eax, %rdx (Ardi,Ardi,4), (%rdi,%rax,4), (%rsi,%rsi,2), %rdi ,Arax (Ard x, %rax,8), $4,%rax %rcx, A(%rax) %r8, A+8(%rax) $139776, %eax %rax %rdi %rax Arax Use your reverse engineering skills 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, and T on the next page as answer 2.2. You may attach additional pages as needed. Place the discovered values for R, S, and T in 2.1 2.1) Value of R, S, and T (45 points 15 points each) 2.2) Show your work (15 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
