Awesome q2a theme
0 votes
8 views

given the code program below

 

sum=0

for(i=0;i<=10;i++)

sum=sum+a[i]

 

 

the number of temporary variables required to convert the above program into a 3-address code is ?

 

i have done it in 2 ways 

 

 

which of those is the correct one? if both are wrong method then can you please share the correct answer.

 

also in 3-address code can we reuse the temporary variables as i have done in answer2 ? if not why?

in Compiler Design by (7 points) | 8 views

Please log in or register to answer this question.

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
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
8,437 questions
2,714 answers
13,238 comments
95,460 users