Question: Given this Intermediate File of aCompiler: ( 1 ) : = #1 Indx ( 2 ) JGT Indx #25 (20) ( 3 ) - Indx

Given this Intermediate File of aCompiler:

( 1 )

: =

#1

Indx

( 2 )

JGT

Indx

#25

(20)

( 3 )

-

Indx

#1

t1

( 4 )

*

t1

#10

t2

( 5 )

*

#2

MLK

t3

( 6 )

-

t3

#1

t4

( 7 )

-

t4

#1

t5

( 8 )

+

t2

t5

t6

( 9 )

*

t6

#4

t7

( 10 )

-

Indx

#1

t8

( 11 )

*

t8

#10

t9

( 12 )

*

#2

MLK

t10

( 13 )

-

t10

#1

t11

( 14 )

+

t9

t11

t12

( 15 )

*

t12

#4

t13

( 16 )

: =

ZYX[t13]

CBA[t7]

( 17 )

+

#1

Indx

t14

( 18 )

: =

t14

Indx

( 19 )

JMP

( 2 )

( 20 )

Optimize the code.

Mark which statements would be moved,modified, or removed. Machine independent code optimization uses manytechniques. List the optimization methods you used.

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!