Question: Given the following compiled program: endbr 6 4 movl $ 0 , % edx movl $ 0 , % ecx jmp . L 2 .
Given the following compiled program:
endbr
movl $edx
movl $ecx
jmp L
L:
movslq ecx, rsi
leaq ariprax
movl rax,rsi,eax
sall cleax
addl eax, edx
addl $ecx
L:
cmpl $ecx
jle L
movl edx, eax
ret
Fill in the blanks in the source code on the next page. For each letter, say what would go in the
blank after it
a ab;
int main
int i;
int sum c ;
for d ; e ; f
sum g ;
h ;
G
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
