Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged three-address-code
0
votes
1
answer
31
static single assignment
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
minal
948
views
minal
asked
Jan 22, 2019
Compiler Design
compiler-design
intermediate-code
three-address-code
static-single-assignment
numerical-answers
+
–
0
votes
1
answer
32
MadeEasy Test Series 2018: Compiler - Code Optimization
Given the 3-address code for a basic block: The number of registers that are needed to allocate this basic block with no spills are ________.? My doubt here is : Is there any difference in question asking for minimum ... ask for minimum number of variables required in three address code, Only then should we optimize the code before counting?
Given the 3-address code for a basic block: The number of registers that are needed to allocate this basic block with no spills are ________.?My doubt here is :Is there a...
Shivam Kasat
1.0k
views
Shivam Kasat
asked
Dec 23, 2018
Compiler Design
compiler-design
three-address-code
made-easy-test-series
numerical-answers
+
–
0
votes
0
answers
33
self_doubt
what will be the three address code for x=A[i][j] Given A[M][N] and w is word size; t1=i*N; t2=t1+j; t3=t2*w; t4=base address of array A[M][N] t5=t4+t3; x=t5; My doubt here: Is there any need of t4 variable for storing the base address of arrary or we can directly do it as t4=A[t3]; x=t4;
what will be the three address code for x=A[i][j] Given A[M][N] and w is word size;t1=i*N;t2=t1+j;t3=t2*w;t4=base address of array A[M][N]t5=t4+t3;x=t5;My doubt here: Is ...
Shivam Kasat
480
views
Shivam Kasat
asked
Dec 22, 2018
Compiler Design
compiler-design
intermediate-code
three-address-code
array
+
–
2
votes
1
answer
34
3 address code
The minimum number of variables required in 3 address code of the given expression are:______ a * b * c + d - a + e * f - g + h Order of precedence: * > + > - ; with * as left associative and +,- as right associative.
The minimum number of variables required in 3 address code of the given expression are:______a * b * c + d - a + e * f - g + hOrder of precedence: * + - ; with * as lef...
Sambhrant Maurya
4.4k
views
Sambhrant Maurya
asked
Nov 1, 2018
Compiler Design
compiler-design
intermediate-code
three-address-code
numerical-answers
+
–
0
votes
1
answer
35
made easy test series
Chetan28kumar
459
views
Chetan28kumar
asked
Oct 19, 2018
Compiler Design
compiler-design
code-optimization
three-address-code
numerical-answers
made-easy-test-series
+
–
0
votes
1
answer
36
made easy online test
For question like :- Find minimum number of variable required to solve the expression in three address code. (not SSA) Do we need to consider the given variable also? Example:- q + r/3 + s – t * 5 + u * v/w how many variable required?
For question like :-Find minimum number of variable required to solve the expression in three address code. (not SSA)Do we need to consider the given variable also?Exampl...
sardendu
478
views
sardendu
asked
Sep 29, 2018
Compiler Design
three-address-code
made-easy-test-series
numerical-answers
+
–
0
votes
2
answers
37
3 address code
Shivangi Parashar 2
1.1k
views
Shivangi Parashar 2
asked
Sep 19, 2018
Compiler Design
compiler-design
intermediate-code
three-address-code
virtual-gate-test-series
+
–
0
votes
1
answer
38
Doubt in Compiler
Three address codes can be implemented by (a) indirect triples (b) direct triples (c) quadruples (d) none of the above
Three address codes can be implemented by(a) indirect triples (b) direct triples(c) quadruples (d) none of the above
goluabhinan
1.7k
views
goluabhinan
asked
Sep 16, 2018
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
0
votes
1
answer
39
Test series
$\text{What is three address code representation of this ?}$ -a+b|c^d^e*f|g
$\text{What is three address code representation of this ?}$-a+b|c^d^e*f|g
Nikhil Patil
572
views
Nikhil Patil
asked
Feb 18, 2018
Compiler Design
compiler-design
three-address-code
numerical-answers
test-series
+
–
0
votes
2
answers
40
test series
Consider the following statements: S1 : Three-address code is a linearized representation of syntax tree. S2 : The syntax tree not depicts the natural hierarchical structure of source program. Which of the following is true? plz explain s1 statement
Consider the following statements:S1 : Three-address code is a linearized representation of syntax tree.S2 : The syntax tree not depicts the natural hierarchical structur...
92komal
2.4k
views
92komal
asked
Dec 22, 2017
Compiler Design
compiler-design
three-address-code
test-series
+
–
7
votes
1
answer
41
No of Temporary Variable required
Consider the following $3-$address code. $t_1=t+e$ $t_2=g+a$ $t_3=t_1+t_2$ $t_4=t_2+t_2$ $t_5=t_4+t_3$ There are five temporary variables in above code. The minimum number of temporary variables that can be used in the equivalent optimised $3-$address code of above code are ______________. Can anyone Confirm How many temporary variables required here.? I got 3 .
Consider the following $3-$address code.$t_1=t+e$$t_2=g+a$$t_3=t_1+t_2$$t_4=t_2+t_2$$t_5=t_4+t_3$There are five temporary variables in above code. The minimum number of t...
junaid ahmad
606
views
junaid ahmad
asked
Oct 5, 2017
Compiler Design
compiler-design
three-address-code
numerical-answers
+
–
1
votes
1
answer
42
3 address representation
In 3 address code format can LHS be repeated ? For eg if we have expression a + b*c then t1 = a t2 = b*c t1 = t1 + t2 or t3 = t1 + t2 which one is correct?
In 3 address code format can LHS be repeated ?For eg if we have expression a + b*c then t1 = a t2 = b*c t1 = t1 + t2 or t3 = t1 + t2 which one is correct?
Xylene
383
views
Xylene
asked
Aug 29, 2017
Compiler Design
compiler-design
intermediate-code
three-address-code
descriptive
+
–
0
votes
1
answer
43
doubt
why x=a[i][j] and x=f(a,b) are not three address code..
why x=a[i][j] and x=f(a,b) are not three address code..
firki lama
517
views
firki lama
asked
Jan 5, 2017
Compiler Design
intermediate-code
three-address-code
compiler-design
+
–
0
votes
1
answer
44
compilation
Which of the following class of statement usually produces no executable codes when compiled? Assignment Declaration Input and output statement Structural statements
Which of the following class of statement usually produces no executable codes when compiled?Assignment Declaration Input and output statement Structural statements
vaishali jhalani
750
views
vaishali jhalani
asked
Nov 22, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
0
votes
1
answer
45
Three address code
thor
1.1k
views
thor
asked
Nov 17, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
test-series
+
–
2
votes
1
answer
46
ME-Single Static Assignment
Do I have to define variables(a,b,c,d,e) in temp variable before use? Ans is 6 or 11??
Do I have to define variables(a,b,c,d,e) in temp variable before use?Ans is 6 or 11??
KISHALAY DAS
623
views
KISHALAY DAS
asked
Oct 21, 2016
Compiler Design
compiler-design
code-optimization
three-address-code
static-single-assignment
numerical-answers
made-easy-test-series
+
–
1
votes
1
answer
47
ME TEST SERIES
Aman Jha
399
views
Aman Jha
asked
Oct 14, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
directed-acyclic-graph
made-easy-test-series
+
–
2
votes
2
answers
48
Write Quadruples,Triples, and indirect Triples for the expression
Write Quadruples,Triples, and indirect Triples for the expression : (a+b) * (c+d) - (a+b+c)
Write Quadruples,Triples, and indirect Triples for the expression : (a+b) * (c+d) - (a+b+c)
LavTheRawkstar
31.0k
views
LavTheRawkstar
asked
Jun 25, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
3
votes
1
answer
49
Three address code invloves
Three address code invloves exactly 3 addresses at most 3 addresses at least 3 addresses No unary opeartors
Three address code invlovesexactly 3 addressesat most 3 addressesat least 3 addressesNo unary opeartors
sh!va
15.1k
views
sh!va
asked
Jun 23, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
5
votes
4
answers
50
Find number of variables in optimized code
Consider following 3 address code t1 = t+e t2 = g+a t3 = t1*t2 t4 = t2+t2 t5 = t4+t3 The minimum number of temporary variables that can be used in equivalent 3-address code of above code is Approach: t = t+e, g = g+a, t = t*g, g = g+g,t = t+g. Hence 4 temporary variables are needed. Is this right?
Consider following 3 address codet1 = t+et2 = g+at3 = t1*t2t4 = t2+t2t5 = t4+t3The minimum number of temporary variables that can be used in equivalent 3-address code of ...
Kitty Kat
2.4k
views
Kitty Kat
asked
Oct 12, 2015
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
Page:
« prev
1
2
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register