Question

The following question based on MIPS assembly language:

Given this Intermediate File of a Compiler #1 Indx Indx tl #2 t3 t4 Indx (20) tl t2 t3 t4 t5 .= (2) #25 #1 #10 MLK #1 #1 t5 JGT (5) * t6 Indx t8 #1 #10 MLK #1 tl1 t8 t9 t10 tl1 t12 t13 CBA[t7] 10) (12) * #2 (13) (14)9 (15) t12 (16) := (17)+ (18) := t14 19) JMP (20) t10 ZYX[tl3] #1 Indx t14 Indx Optimize the code Mark which statements would be moved, modified, or removed Machine independent code optimization uses many techniques List the optimization methods vou used,

0 0
Add a comment Improve this question Transcribed image text
Answer #1

S.no Operion Source 1 Source 2 Destination Explanation Indx indx= 1 BGT Indx (20) Branch to the instruction number 20 if Indx

In the Given intermediate code of the compiler, The following instructions can be optimized i4 is never used again after the

Add a comment
Know the answer?
Add Answer to:
The following question based on MIPS assembly language: Given this Intermediate File of a Compiler #1...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT