The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
35 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 ago in Compiler Design by Junior (905 points) | 35 views

2 Answers

0 votes

dag use to eliminate common subexpression

answered ago by Active (2.3k points)
0 votes

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

answered ago by Active (1.3k points)

Related questions



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

36,088 questions
43,532 answers
123,707 comments
42,762 users