Question: Question 1. A student is given IA-32 compiler generated listing as shown below, includes machine instructions, assembly instructions, and relative addresses of the instructions. The

Question 1. A student is given IA-32 compiler generated listing as shown below, includes machine instructions, assembly instructions, and relative addresses of the instructions. The C source code is not displayed! 0001e c7 45 f8 ffffffff mov DWORD PTR_i$[ebp), -1 00025 c7 45 ecfeffffff mov DWORD PTR _j$[ebp), -2 0002c c7 45 e0 00 00 00 00 mov DWORD PTR _k$[ebp), 0 00033 8b 45 f8 mov 00036 03 45 ec add 00039 89 45 e mov eax, DWORD PTR_i>[ebp] eax, DWORD PTR_j$[ebp] DWORD PTR _k$[ebp), eax Please answer the following questions: Question 1.1 (10 POINTS) What is the total length in bytes of the shown machine code. (Please give your answer using decimal numbers). Question 1.2. (10 POINTS) Please write the corresponding C-code to the right of the assembly code. Question 1.3 (10 POINTS) Do you have enough information to determine the values of the variables: _i$, j$, k$? Please answer YES or NO. If your answer is yes 1.3.1 WHAT ARE THEIR 'SIGNED DECIMAL VALUES: 1.3.2 How compiler generated variables: _i$, j$, _k$ are used by the code? Please describe in 1 sentence. Question 1. A student is given IA-32 compiler generated listing as shown below, includes machine instructions, assembly instructions, and relative addresses of the instructions. The C source code is not displayed! 0001e c7 45 f8 ffffffff mov DWORD PTR_i$[ebp), -1 00025 c7 45 ecfeffffff mov DWORD PTR _j$[ebp), -2 0002c c7 45 e0 00 00 00 00 mov DWORD PTR _k$[ebp), 0 00033 8b 45 f8 mov 00036 03 45 ec add 00039 89 45 e mov eax, DWORD PTR_i>[ebp] eax, DWORD PTR_j$[ebp] DWORD PTR _k$[ebp), eax Please answer the following questions: Question 1.1 (10 POINTS) What is the total length in bytes of the shown machine code. (Please give your answer using decimal numbers). Question 1.2. (10 POINTS) Please write the corresponding C-code to the right of the assembly code. Question 1.3 (10 POINTS) Do you have enough information to determine the values of the variables: _i$, j$, k$? Please answer YES or NO. If your answer is yes 1.3.1 WHAT ARE THEIR 'SIGNED DECIMAL VALUES: 1.3.2 How compiler generated variables: _i$, j$, _k$ are used by the code? Please describe in 1 sentence
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
