in CO and Architecture
936 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.
in CO and Architecture
936 views

2 Comments

which assembly language to use? Guess none is in GATE syllabus.
0
0
not specified in the ques. i guess MIPS 1. the intention is to find the number of instructions required dynamically?

Ans is 1618... how?
0
0

Please log in or register to answer this question.

Related questions