939 views
3 votes
3 votes
Consider c code:

for(i=0;i<=100;i++)

A[i]=B[i]+C;

 

A & B are 64 bit arrays and C & i are 64 bit integers. Assume instruction size to be 4 bytes. A, B, C and i are at addresses 0,5000,1500 and 2000.Assume that the values in registers are also between iterations of the loop. Write the assembly code for the c code fragment.

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
R S BAGDA asked May 3, 2022
526 views
char c1 = -128 , c2 c3;c2=c1+10; c3=c1-10;printf(c3);(ANS= c3=+118 why???????)
1 votes
1 votes
1 answer
4
Rohit Gupta 8 asked Nov 8, 2017
464 views
What does the following fragment of C- program print?char t[] = "PROGRAM1234"; char *r = t; printf ("%s", r + r[6]- r[3]);Explain.