Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged intermediate-code
3
votes
1
answer
91
Test by Bikram | Compiler Design | Test 1 | Question: 20
The least number of temporary variables required to create a $3$ address code sequence for the statement $L= P + R$ is ________.
The least number of temporary variables required to create a $3$ address code sequence for the statement $L= P + R$ is ________.
Bikram
801
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
numerical-answers
compiler-design
intermediate-code
+
–
2
votes
2
answers
92
Test by Bikram | Compiler Design | Test 1 | Question: 15
Which of these is NOT true about Abstract Syntax Tree (AST)? An AST is usually the result of the syntax analysis phase of a compiler. AST has no impact on the final output of the compiler. AST is a tree ... structure of source code written in a programming language. AST is also used in program analysis and program transformation systems.
Which of these is NOT true about Abstract Syntax Tree (AST)?An AST is usually the result of the syntax analysis phase of a compiler.AST has no impact on the final output...
Bikram
654
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
syntax-directed-translation
intermediate-code
+
–
0
votes
1
answer
93
The issues in the design of code generation are __
The issues in the design of Code generation are ________ The issues in the design of code generation are due the what reason ? The compiler converts the source code by accepting HLL into target code or machine code ... the various instructions . These dynamic acyclic graphs which are obtianed are they platform independent or platform independent??
The issues in the design of Code generation are ________The issues in the design of code generation are due the what reason ?The compiler converts the source code by acce...
LavTheRawkstar
2.2k
views
LavTheRawkstar
asked
Nov 23, 2016
Compiler Design
compiler-design
intermediate-code
+
–
0
votes
1
answer
94
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
95
madeeasy test series
vaishali jhalani
1.5k
views
vaishali jhalani
asked
Nov 22, 2016
Compiler Design
compiler-design
intermediate-code
made-easy-test-series
+
–
0
votes
1
answer
96
Ace Test Series: Compiler Design - Intermediate Code
The answer given was D but isn't array access not a TAC as the following link suggests: https://web.stanford.edu/class/archive/cs/cs143/cs143.1128/handouts/240%20TAC%20Examples.pdf Can someone please clarify?
The answer given was D but isn't array access not a TAC as the following link suggests:https://web.stanford.edu/class/archive/cs/cs143/cs143.1128/handouts/240%20TAC%20Exa...
Kai
467
views
Kai
asked
Nov 18, 2016
Compiler Design
ace-test-series
compiler-design
intermediate-code
+
–
0
votes
1
answer
97
Ace Test Series: Compiler Design - Intermediate Code
Consider the following expression: (a+a*(b-c)+(b-c)*d) What is the minimum number of three address statements for the expression? My question is whether we should optimize the expression before evaluating it or go as it is. For instance the above expression can be optimized as (a+(b-c)*(a+d)) which would generate lesser number of statements.
Consider the following expression:(a+a*(b-c)+(b-c)*d)What is the minimum number of three address statements for the expression?My question is whether we should optimize t...
Kai
557
views
Kai
asked
Nov 18, 2016
Compiler Design
ace-test-series
compiler-design
intermediate-code
+
–
1
votes
1
answer
98
Intermediate Code
thor
663
views
thor
asked
Nov 17, 2016
Compiler Design
compiler-design
intermediate-code
test-series
+
–
0
votes
1
answer
99
Three address code
thor
1.1k
views
thor
asked
Nov 17, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
test-series
+
–
1
votes
1
answer
100
ME TEST SERIES
Aman Jha
398
views
Aman Jha
asked
Oct 14, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
directed-acyclic-graph
made-easy-test-series
+
–
1
votes
1
answer
101
self
typechecking is done by : 1. lexical analyser 2. syntax analyser 3. semantic analyser 4. ICG
typechecking is done by :1. lexical analyser2. syntax analyser3. semantic analyser4. ICG
kashyap.rj
319
views
kashyap.rj
asked
Oct 10, 2016
Compiler Design
compiler-design
lexical-analysis
intermediate-code
+
–
0
votes
1
answer
102
self
consider the above ICG, The number of nodes and edges in control-flow-graph constructed for the above code, respectively, are
consider the above ICG,The number of nodes and edges in control-flow-graph constructed for the above code, respectively, are
Rajesh Raj
251
views
Rajesh Raj
asked
Oct 10, 2016
Compiler Design
intermediate-code
+
–
1
votes
1
answer
103
Compiler Gate
Construct DAG for [a+a * (b-c) + [ (b-c) + d ].
Construct DAG for[a+a * (b-c) + [ (b-c) + d ].
LavTheRawkstar
1.2k
views
LavTheRawkstar
asked
Jun 27, 2016
Compiler Design
compiler-design
intermediate-code
directed-acyclic-graph
+
–
2
votes
2
answers
104
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
105
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
+
–
25
votes
2
answers
106
GATE CSE 1992 | Question: 11b
Write $3$ address intermediate code (quadruples) for the following boolean expression in the sequence as it would be generated by a compiler. Partial evaluation of boolean expressions is not permitted. Assume the usual rules of precedence of the operators.$(a+b) > (c+d) \text{ or } a > c \text{ and }b < d$
Write $3$ address intermediate code (quadruples) for the following boolean expression in the sequence as it would be generated by a compiler. Partial evaluation of boolea...
go_editor
2.7k
views
go_editor
asked
Apr 24, 2016
Compiler Design
gate1992
compiler-design
syntax-directed-translation
intermediate-code
descriptive
+
–
1
votes
1
answer
107
Ace Test Series: Compiler Design - Intermediate Code
A) a & b both are wrong B) a & b both are correct C) a is correct & b is wrong D) b is correct & a is wrong How to solve such qstn??
A) a & b both are wrongB) a & b both are correctC) a is correct & b is wrongD) b is correct & a is wrongHow to solve such qstn??
Tushar Shinde
607
views
Tushar Shinde
asked
Jan 12, 2016
Compiler Design
ace-test-series
compiler-design
intermediate-code
+
–
1
votes
2
answers
108
quadruple notation
Himanshu1
1.3k
views
Himanshu1
asked
Jan 1, 2016
Compiler Design
compiler-design
intermediate-code
made-easy-test-series
+
–
2
votes
1
answer
109
Is Intermediate code generation part of analyis or synthesis phase?
During code generation, we need to do register allocation (kind of machine dependent stuff). So, I think it must be the part of Synthesis phase?
During code generation, we need to do register allocation (kind of machine dependent stuff). So, I think it must be the part of Synthesis phase?
monanshi
1.9k
views
monanshi
asked
Dec 10, 2015
Compiler Design
compiler-design
intermediate-code
+
–
5
votes
4
answers
110
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
+
–
6
votes
4
answers
111
ISRO2008-38
Relative to the program translated by a compiler, the same program when interpreted runs Faster Slower At the same speed May be faster or slower
Relative to the program translated by a compiler, the same program when interpreted runsFasterSlowerAt the same speedMay be faster or slower
अनुराग पाण्डेय
3.9k
views
अनुराग पाण्डेय
asked
Oct 4, 2015
Compiler Design
isro2008
compiler-design
intermediate-code
+
–
5
votes
1
answer
112
Difference between relocatable machine code and absolute machine code!!!1
Difference between relocatable machine code and absolute machine code!!!1
Difference between relocatable machine code and absolute machine code!!!1
pyuri
11.1k
views
pyuri
asked
Oct 4, 2015
Compiler Design
compiler-design
intermediate-code
+
–
80
votes
7
answers
113
GATE CSE 2015 Set 1 | Question: 55
The least number of temporary variables required to create a three-address code in static single assignment form for the expression $q + r / 3 + s - t * 5 + u * v/w$ is__________________.
The least number of temporary variables required to create a three-address code in static single assignment form for the expression $q + r / 3 + s - t * 5 + u * v/w$ is_...
makhdoom ghaya
29.1k
views
makhdoom ghaya
asked
Feb 13, 2015
Compiler Design
gatecse-2015-set1
compiler-design
intermediate-code
normal
numerical-answers
static-single-assignment
+
–
41
votes
7
answers
114
GATE CSE 2015 Set 2 | Question: 29
Consider the intermediate code given below. (1) i=1 (2) j=1 (3) t1 = 5 * i (4) t2 = t1 + j (5) t3 = 4 * t2 (6) t4 = t3 (7) a[t4] = -1 (8) j = j + 1 (9) if j <= 5 goto (3) (10) i = i +1 (11) if i < 5 goto (2) The number of nodes and edges in control-flow-graph constructed for the above code, respectively, are $5$ and $7$ $6$ and $7$ $5$ and $5$ $7$ and $8$
Consider the intermediate code given below.(1) i=1 (2) j=1 (3) t1 = 5 * i (4) t2 = t1 + j (5) t3 = 4 * t2 (6) t4 = t3 (7) a[t4] = -1 (8) j = j + 1 (9) if j <= 5 goto (3) ...
go_editor
25.8k
views
go_editor
asked
Feb 12, 2015
Compiler Design
gatecse-2015-set2
compiler-design
intermediate-code
normal
+
–
54
votes
4
answers
115
GATE CSE 2015 Set 1 | Question: 8
For computer based on three-address instruction formats, each address field can be used to specify which of the following: (S1) A memory operand (S2) A processor register (S3) An implied accumulator register Either $S1$ or $S2$ Either $S2$ or $S3$ Only $S2$ and $S3$ All of $S1$, $S2$ and $S3$
For computer based on three-address instruction formats, each address field can be used to specify which of the following:(S1) A memory operand(S2) A processor register(S...
makhdoom ghaya
18.9k
views
makhdoom ghaya
asked
Feb 12, 2015
Compiler Design
gatecse-2015-set1
compiler-design
intermediate-code
normal
+
–
47
votes
2
answers
116
GATE CSE 1994 | Question: 1.12
Generation of intermediate code based on an abstract machine model is useful in compilers because it makes implementation of lexical analysis and syntax analysis easier syntax-directed translations can be written for intermediate code generation it ... the compiler it is not possible to generate code for real machines directly from high level language programs
Generation of intermediate code based on an abstract machine model is useful in compilers becauseit makes implementation of lexical analysis and syntax analysis easiersyn...
Kathleen
20.1k
views
Kathleen
asked
Oct 4, 2014
Compiler Design
gate1994
compiler-design
intermediate-code
easy
+
–
35
votes
4
answers
117
GATE CSE 2014 Set 3 | Question: 17
One of the purposes of using intermediate code in compilers is to make parsing and semantic analysis simpler. improve error recovery and error reporting. increase the chances of reusing the machine-independent code optimizer in other compilers. improve the register allocation.
One of the purposes of using intermediate code in compilers is tomake parsing and semantic analysis simpler.improve error recovery and error reporting.increase the chance...
go_editor
9.4k
views
go_editor
asked
Sep 28, 2014
Compiler Design
gatecse-2014-set3
compiler-design
intermediate-code
easy
+
–
100
votes
9
answers
118
GATE CSE 2014 Set 2 | Question: 34
For a C program accessing $\mathbf{X[i] [j] [k]}$, the following intermediate code is generated by a compiler. Assume that the size of an integer is $32$ bits and the size of a character is $8$ bits. t0 = i ∗ 1024 t1 = j ∗ 32 t2 = k ∗ 4 t3 = t1 + t0 t4 ... as "char $\mathbf{X[4] [32] [8]}$ . $\mathbf{X}$ is declared as "char $\mathbf{X[32] [16] [2]}$ .
For a C program accessing $\mathbf{X[i] [j] [k]}$, the following intermediate code is generated by a compiler. Assume that the size of an integer is $32$ bits and the siz...
go_editor
36.2k
views
go_editor
asked
Sep 28, 2014
Compiler Design
gatecse-2014-set2
compiler-design
intermediate-code
programming-in-c
normal
+
–
Page:
« prev
1
2
3
4
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register