Web Page

Lexical analysis, Parsing, Syntax-directed translation, Runtime environments, Intermediate code generation.

$$\scriptsize{\overset{{\large{\textbf{Mark Distribution in Previous GATE}}}}{\begin{array}{|c|c|c|c|c|c|c|c|}\hline
\textbf{Year}& \textbf{2024-1} & \textbf{2024-2} & \textbf{2023} & \textbf{2022} & \textbf{2021-1}&\textbf{2021-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}
\\\hline\textbf{1 Mark Count} &2&2&1 & 2&1&2&1&1.67&2
\\\hline\textbf{2 Marks Count} &4&3&3 & 1 &3&2&1&2.67&4
\\\hline\textbf{Total Marks} &10&8&7 & 4&7&6&\bf{4}&\bf{7}&\bf{10}\\\hline
\end{array}}}$$

Recent questions in Compiler Design

#1
20
views
0 answers
0 votes
Which of the following statements is/are true?A) Graph coloring is a systematic technique for allocating registers and managing register spills.B) ... resolves the shift/reduce conflict arising from the dangling-else ambiguity correctly.
#2
31
views
1 answers
1 votes
Consider the following grammar: Prog → {S} S→ Prog X; | Y = z; X →ϵ |S Prog Y → SZ Z→id Determine follow(S) from the above grammar. (A) { } , id} (B) { }, ϵ , id} (C) { },{ id} (D ) { },{ id,ϵ }
#3
71
views
0 answers
1 votes
S -> i E t S S' | aS' -> e S | ϵE -> bHow to convert this grammar to LL(1) grammar?
#4
82
views
0 answers
0 votes
Draw a DFA and Transition table of (a|b)* abb
#5
115
views
0 answers
0 votes
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)))
#6
129
views
0 answers
0 votes
Q4. Generate target code for the following source language statements : x = a + b + c * (d-e) 
#7
93
views
0 answers
0 votes
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
#8
114
views
0 answers
1 votes
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;
#9
121
views
0 answers
0 votes
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
#10
88
views
0 answers
0 votes
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
#11
258
views
2 answers
0 votes
S -> A BA -> f S fA -> b b B dB -> ƐB -> cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
#12
185
views
2 answers
0 votes
S -> A BA -> f S fA -> b b B dB -> ƐB -> cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
#14
261
views
0 answers
0 votes
Number of nodes in the DAG(Directed Acyclic Graph) representing (a+b)+c+(a+b)
#15
2.8k
views
3 answers
1 votes
Consider the following two sets:Set $\text{X}$Set $\text{Y}$P. Lexical Analyzer1. Abstract Syntax TreeQ. Syntax Analyzer2. TokenR. Intermediate Code Generator3. Parse TreeS. Code ...
#16
3.1k
views
1 answers
2 votes
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
#17
3.4k
views
1 answers
2 votes
Consider the following context-free grammar where the start symbol is $\text{S}$ and the set of terminals is $\{a, b, c, d\}$ ... $(2)$ $S \rightarrow A a A b$ $(3)$ blank $(4)$ blank
#18
2.1k
views
1 answers
3 votes
Consider the following expression: $x[i]=(p+r) *-s[i]+u / w$ ... $=s i \quad(3)-(0)(2) \quad(6)=[ ] x i$
#19
2.2k
views
1 answers
4 votes
Consider a context-free grammar $\text{G}$ with the following $3$ rules.$S \rightarrow a S, S \rightarrow a S b S , S \rightarrow c$ Let $w \in L(G)$ ... $n_{c}(w)=n_{b}(w) * 2$
#20
3.0k
views
1 answers
2 votes
Consider the following augmented grammar, which is to be parsed with a $\text{SLR}$ parser. The set of terminals is $\{a, b, c, d, \#, @\}$\[\begin{ ... number of items in the set $\operatorname{GOTO}\left(I_{0}, S\right)$ is __________.