The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
197 views
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?????
asked in Compiler Design by Active (1.5k points) | 197 views

2 Answers

0 votes

dag use to eliminate common subexpression

answered by Loyal (6.7k points)
0 votes

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

answered by Active (1.5k points)

Related questions

0 votes
1 answer
2
asked Jan 11, 2017 in Compiler Design by Samujjal Das Loyal (9.7k points) | 314 views
0 votes
0 answers
5
asked Aug 23, 2018 in Compiler Design by Silpacharan (7 points) | 14 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
47,913 questions
52,294 answers
182,250 comments
67,741 users