The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
897 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 Junior (913 points) | 897 views

2 Answers

0 votes

dag use to eliminate common subexpression

answered by Loyal (6k points)
0 votes

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

answered by Active (1.7k points)

Related questions

0 votes
1 answer
3
asked Jan 11, 2017 in Compiler Design by Samujjal Das Loyal (9.2k points) | 346 views
0 votes
0 answers
6
asked Aug 23, 2018 in Compiler Design by Silpacharan (11 points) | 22 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
49,811 questions
54,533 answers
188,418 comments
75,585 users