Question: Given the following compiled program: endbr 6 4 movl $ 0 , % edx movl $ 0 , % ecx jmp . L 2 .

Given the following compiled program:
endbr64
movl $0,%edx
movl $0,%ecx
jmp .L2
.L3:
movslq %ecx, %rsi
leaq a(%rip),%rax
movl (%rax,%rsi,4),%eax
sall %cl,%eax
addl %eax, %edx
addl $1,%ecx
.L2:
cmpl $15,%ecx
jle .L3
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.
1
(a) a[(b)];
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!