in Compiler Design retagged by
9,360 views
0 votes
0 votes
Question.Construct the Dag for the following Assume that + is left associative?

a)a+b+(a+b)

b)a+b+a+b

c)a+a+(a+a+a+(a+a+a+a))

Please give the Answer to these questions?????
in Compiler Design retagged by
9.4k views

2 Answers

0 votes
0 votes

dag use to eliminate common subexpression

0 votes
0 votes

DAG gives a picture of how the value is computed by each statement in the TAC.