Consider the following intermediate code: r1 = 5 vl1 = r1 jmp Simple.f@o jmp Simple.f@1 Simple.f@0: write vl1 r2 = 7 13 = vl1 + r2 vl1 = r3 jmp Simple.f@o Simple.f@1: ro = vl1 return (i) Describe...


Consider the following intermediate code:<br>r1 = 5<br>vl1 = r1<br>jmp Simple.f@o<br>jmp Simple.f@1<br>Simple.f@0:<br>write vl1<br>r2 = 7<br>13 = vl1 + r2<br>vl1 = r3<br>jmp Simple.f@o<br>Simple.f@1:<br>ro = vl1<br>return<br>(i) Describe briefly what the optimisation dead code elimination<br>involves.<br>(ii) Show the result of applying dead code elimination to the<br>intermediate code above.<br>

Extracted text: Consider the following intermediate code: r1 = 5 vl1 = r1 jmp Simple.f@o jmp Simple.f@1 Simple.f@0: write vl1 r2 = 7 13 = vl1 + r2 vl1 = r3 jmp Simple.f@o Simple.f@1: ro = vl1 return (i) Describe briefly what the optimisation dead code elimination involves. (ii) Show the result of applying dead code elimination to the intermediate code above.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here