Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Search results for compiler
110
views
0
answers
1
votes
Compiler Design
1. Generate intermediate code for the following code segment. a) (x<y) and (y>z) and not z b) if(i%2==0)evensum=evensum+elseoddsum=oddsum+i;
Ebrahim
110
views
Ebrahim
asked
May 5
Compiler Design
compiler-design
syntax-directed-translation
ullman
+
–
109
views
0
answers
0
votes
Compiler design
directed acyclic graph(DAG)is a simplified step from the AST. Solve the following expressions by AST and DAG: X=(((a+a))+((a+a)+(a+a)))
Sarahcs
109
views
Sarahcs
asked
May 6
Compiler Design
compiler-design
directed-acyclic-graph
+
–
116
views
0
answers
0
votes
Compiler Design compiler design tcompiler-design-timothy-g-griffin
Q4. Generate target code for the following source language statements : x = a + b + c * (d-e)
Ebrahim
116
views
Ebrahim
asked
May 5
Compiler Design
compiler-design
syntax-directed-translation
ullman
lexical-analysis
parsing
+
–
88
views
0
answers
0
votes
Compiler Design compiler design tcompiler-design-timothy-g-griffin
Q2. Implement the statement a:= -b + c*(d-e) + f * (c*(d-e)) into following Intermediate code representation. a) Quadrupleb) Triple c) Indirect Triple Solve the above Question like this example
Ebrahim
88
views
Ebrahim
asked
May 5
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
parsing
ullman
+
–
7.1k
views
4
answers
10
votes
GATE CSE 2021 Set 2 | Question: 13
In the context of compilers, which of the following is/are $\text{NOT}$ an intermediate representation of the source program?Three address codeAbstract Syntax Tree $\text{(AST)}$Control Flow Graph $\text{(CFG)}$Symbol table
Arjun
7.1k
views
Arjun
asked
Feb 18, 2021
Compiler Design
gatecse-2021-set2
multiple-selects
compiler-design
intermediate-code
1-mark
+
–
113
views
0
answers
0
votes
exam 2011
Use the semantic rules below to draw an annotated parse tree for the expression. Compute the final value. (4*2)+3+(3*3+2)n
Mokoena
113
views
Mokoena
asked
Apr 29
Compiler Design
compiler-design
parsing
numerical-answers
+
–
9.7k
views
4
answers
35
votes
GATE CSE 2014 Set 3 | Question: 17
One of the purposes of using intermediate code in compilers is tomake parsing and semantic analysis simpler.improve error recovery and error ... machine-independent code optimizer in other compilers.improve the register allocation.
go_editor
9.7k
views
go_editor
asked
Sep 28, 2014
Compiler Design
gatecse-2014-set3
compiler-design
intermediate-code
easy
+
–
21.0k
views
7
answers
56
votes
GATE CSE 2005 | Question: 83a
Statement for Linked Answer Questions 83a & 83b:Consider the following expression grammar. The semantic rules for expression evaluation are stated next to each grammar ... and resolves the conflict in favor of a reduce over a shift action
Kathleen
21.0k
views
Kathleen
asked
Sep 22, 2014
Compiler Design
gatecse-2005
compiler-design
parsing
difficult
+
–
20.6k
views
3
answers
17
votes
GATE CSE 2019 | Question: 19
Consider the grammar given below:$S \rightarrow Aa$A \rightarrow BD$B \rightarrow b \mid \epsilon $D \rightarrow d \mid \epsilon $Let $a,b,d$ and $ ... $)$ , then the answer should be $3210$)
Arjun
20.6k
views
Arjun
asked
Feb 7, 2019
Compiler Design
gatecse-2019
numerical-answers
compiler-design
parsing
1-mark
first-and-follow
+
–
1.0k
views
0
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 53
The grammar shown below is LL(k) for some value of k. What is the smallest value of k for which this grammar is LL(k)?
GO Classes
1.0k
views
GO Classes
asked
Feb 5
Compiler Design
goclasses2024-mockgate-14
numerical-answers
compiler-design
parsing
ll-parser
2-marks
+
–
10.5k
views
2
answers
19
votes
GATE CSE 2006 | Question: 60
Consider the following C code segment. for (i = 0, i < n; i++) { for (j = 0; j < n; j++) { if (i%2) { x += (4*j + 5*i); ... in this code There is scope of strength reduction in this code There is scope of dead code elimination in this code
Rucha Shelke
10.5k
views
Rucha Shelke
asked
Sep 26, 2014
Compiler Design
gatecse-2006
compiler-design
code-optimization
+
–
3.1k
views
1
answers
2
votes
GATE CSE 2024 | Set 2 | Question: 19
Which of the following statements is/are FALSE?An attribute grammar is a syntax-directed definition $\text{(SDD)}$ in which the functions in the semantic ... $\text{LR(1)}$ grammar can be evaluated using a bottom-up parsing strategy
Arjun
3.1k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set2
compiler-design
syntax-directed-translation
multiple-selects
+
–
928
views
1
answers
2
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 26
Which attributes in the following grammar are synthesized?A.aB.bB.xC.c
GO Classes
928
views
GO Classes
asked
Feb 5
Compiler Design
goclasses2024-mockgate-14
compiler-design
syntax-directed-translation
multiple-selects
1-mark
+
–
10.9k
views
3
answers
18
votes
GATE CSE 2021 Set 1 | Question: 26
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation ... declarations and boolean expressions.The actions will lead to an infinite loop
Arjun
10.9k
views
Arjun
asked
Feb 18, 2021
Compiler Design
gatecse-2021-set1
compiler-design
syntax-directed-translation
2-marks
+
–
860
views
1
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 54
Consider the following grammar given below. ... string: $a^* b($\operatorname{CC}($\mathrm{BC}($\mathrm{CB}$\mathrm{BB}$
GO Classes
860
views
GO Classes
asked
Jan 13
Compiler Design
goclasses2024-mockgate-11
goclasses
compiler-design
parsing
lr-parser
2-marks
+
–
256
views
0
answers
0
votes
BARC 2024 CSE
Number of nodes in the DAG(Directed Acyclic Graph) representing (a+b)+c+(a+b)
Ayanava Dutta
256
views
Ayanava Dutta
asked
Mar 17
Compiler Design
normal
directed-acyclic-graph
compiler-design
+
–
373
views
1
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 52
Consider the following given grammar and the parse tree for the sentence $x + y * z.$The first reduction made by the shift-reduce parser is labeled as 1, and we keep ... $T \rightarrow T^* P$ will be labeled 7.
GO Classes
373
views
GO Classes
asked
Feb 5
Compiler Design
goclasses2024-mockgate-14
compiler-design
parsing
2-marks
+
–
26.6k
views
2
answers
57
votes
GATE CSE 2015 Set 1 | Question: 50
A variable $x$ is said to be live at a statement $s_{i}$ in a program if the following three conditions hold simultaneously:There exists a statement $S_{j}$ that uses $x$There is a path ... {p, s, u}$\text{r, s, u}$\text{r, u}$\text{q, v}$
makhdoom ghaya
26.6k
views
makhdoom ghaya
asked
Feb 13, 2015
Compiler Design
gatecse-2015-set1
compiler-design
live-variable-analysis
normal
+
–
2.1k
views
1
answers
0
votes
GATE CSE 2024 | Set 1 | Question: 28
Consider the following grammar $G$, with $S$ as the start symbol. The grammar $G$ has three incomplete productions denoted by $(1), (2)$, and $(3)$ ... $T \rightarrow c T$ (3) $R \rightarrow c R$
Arjun
2.1k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set1
compiler-design
first-and-follow
+
–
534
views
1
answers
5
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 34
$\begin{aligned}& S \rightarrow S1 \;T \\& S 1 \rightarrow a \mid(S S) \\& T \rightarrow \varepsilon \mid b \;T\end{aligned}$In the $\text{LL(1)}$ ... \{T \rightarrow \varepsilon\}$\{S 1 \rightarrow a\}$ and $\{T \rightarrow \varepsilon\}$
GO Classes
534
views
GO Classes
asked
Jan 21
Compiler Design
goclasses2024-mockgate-12
goclasses
compiler-design
parsing
ll-parser
2-marks
+
–
Page:
« prev
1
2
3
4
5
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register