Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Compiler Design:
Recent questions tagged compiler-design
0
votes
1
answer
31
Compilers: Principles, Techniques, and Tools by ALFRED Aho
Find the minimum number of total variables in SSA form: a = b + m m = a + e d = b + m b = a + e
Find the minimum number of total variables in SSA form:a = b + mm = a + ed = b + mb = a + e
abhiyodayapandey
148
views
abhiyodayapandey
asked
Jan 7
Compiler Design
compiler-design
+
–
0
votes
0
answers
32
Made Easy Test Series
alankrit01
146
views
alankrit01
asked
Jan 2
Compiler Design
compiler-design
made-easy-test-series
+
–
0
votes
1
answer
33
Made Easy Test Series Question
Consider the following C code: d=a+b e=a-b f=c+d g=c-e a=f+g b=f-g c=d+e The minimum number of total variables required to convert the above code segment to static single assignment form is? Ans given is 7 but how
Consider the following C code:d=a+be=a-bf=c+dg=c-ea=f+gb=f-gc=d+eThe minimum number of total variables required to convert the above code segment to static single assignm...
yashss2001
214
views
yashss2001
asked
Jan 1
Compiler Design
compiler-design
made-easy-test-series
+
–
0
votes
1
answer
34
Compiler Design
Like Example Above please answer this question Q5. Implement a+b*(c+d)-e/f into: a). Quadruples. b). Triples. c). Indirect triples.
Like Example Above please answer this questionQ5. Implement a+b*(c+d)-e/finto: a). Quadruples.b). Triples.c). Indirect triples.
Ebrahim
271
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
parsing
+
–
0
votes
1
answer
35
compiler Design
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c + d t3 : = e - t2 t4 : = t1 - t3
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c ...
Ebrahim
282
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
syntax-directed-translation
lexical-analysis
parsing
+
–
0
votes
2
answers
36
Compiler Construction : Timothy G. Griffin
Please Answer this question in detail step by step: 3. Translate the arithmetic expression (a + b * c) + d + (a + b * c) − d + e into: a). Syntax tree, (please draw) b). DAG (Directed Acyclic Graph) representation, (please Draw) c). Three-Address Code representation.
Please Answer this question in detail step by step: 3. Translate the arithmetic expression (a + b * c) + d + (a + b * c) − d + e into: a). Syntax tree, (please dr...
Ebrahim
311
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
syntax-directed-translation
code-optimization
+
–
0
votes
1
answer
37
Compiler Design: Timothy G. Griffin
3. Consider the grammar T → R | aTc R → € | RbR i). Give a leftmost and rightmost derivation of aabbbcc. ii). Is the grammar ambiguous? Justify your answer.
3. Consider the grammar T → R | aTc R → € | RbR i). Give a leftmost and rightmost derivation of aabbbcc. ii). Is the grammar ambiguous? Justify your answe...
Ebrahim
146
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
+
–
0
votes
0
answers
38
Compiler Design : Timothy G. Griffin
4. Consider the following grammar and their syntax directed translation (SDT) rules. S → S * A {S.val = S.val x A. val} S → A {S.val = A.val} A → A + B {A.val = A.val – B.val} B → (S)’ {B.val = 2} A → B {A.val = B.val} B → id {B.val = id.val} Calculate the evaluation value of the expression 4 * 6 + 3 * 7. Is it 45 or 84?
4. Consider the following grammar and their syntax directed translation (SDT) rules.S → S * A {S.val = S.val x A. val}S → A {S.val = A.val}A → A...
Ebrahim
319
views
Ebrahim
asked
Dec 18, 2023
Compiler Design
compiler-design
syntax-directed-translation
+
–
0
votes
2
answers
39
Compiler Construction : Timothy G. Griffin
Q5. Find the FIRST and FOLLOW of the grammar to check whether it is LL (1) parser or not. N → AB | BA A → a | CAC B → b | CBC C → a | b
Q5. Find the FIRST and FOLLOW of the grammar to check whether it is LL (1) parser or not. N → AB | BA A → a | CAC B → b | CBC C → a | b
Ebrahim
195
views
Ebrahim
asked
Dec 16, 2023
Compiler Design
compiler-design
+
–
0
votes
0
answers
40
zeal
nihal_chourasiya
200
views
nihal_chourasiya
asked
Dec 10, 2023
Compiler Design
test-series
zeal
compiler-design
live-variable-analysis
+
–
0
votes
1
answer
41
Preparation plan on compiler design
Currently I am preparing for compiler design! What should be the approach on the topics from where should I start because sometimes the flow and order of the topic confuses me. in which order I should study the subject topics? currently I am following below ... org/gate-cs-notes-gq/ here the order is not valid so can you tell me the order of study of the topics?
Currently I am preparing for compiler design!What should be the approach on the topics from where should I start because sometimes the flow and order of the topic confuse...
rajveer43
128
views
rajveer43
asked
Dec 4, 2023
Compiler Design
compiler-design
general-topic-doubt
+
–
0
votes
0
answers
42
Self Doubt Question
gateexplore
85
views
gateexplore
asked
Nov 17, 2023
Compiler Design
self-doubt
compiler-design
+
–
0
votes
1
answer
43
Test Series
$\text{ Anyone please explain : }$
$\text{ Anyone please explain : }$
Rahhul A
289
views
Rahhul A
asked
Nov 13, 2023
Compiler Design
compiler-design
code-optimization
process-and-threads
threads
intermediate-code
+
–
1
votes
1
answer
44
Errors
How to differentiate between Lexical, semantic and syntax error from a given code snippet. Why is this lexical error and not syntax error? $ y = 0x5i; $
How to differentiate between Lexical, semantic and syntax error from a given code snippet.Why is this lexical error and not syntax error? $ y = 0x5i; $
Mrityudoot
238
views
Mrityudoot
asked
Nov 12, 2023
Compiler Design
compiler-design
lexical-analysis
made-easy-test-series
+
–
2
votes
0
answers
45
Made Easy Test Series - Compiler Design
Rahhul A
182
views
Rahhul A
asked
Nov 10, 2023
Compiler Design
compiler-design
made-easy-test-series
+
–
1
votes
3
answers
46
Made Easy Test Series - Compiler Design
$\text{ Find $\textbf{First(A)}$ and $\textbf{Follow(B)}$ }?$
$\text{ Find $\textbf{First(A)}$ and $\textbf{Follow(B)}$ }?$
Rahhul A
502
views
Rahhul A
asked
Nov 10, 2023
Compiler Design
compiler-design
made-easy-test-series
first-and-follow
+
–
0
votes
1
answer
47
compiler desing topic test question
Kishor_1403
142
views
Kishor_1403
asked
Nov 10, 2023
Compiler Design
compiler-design
static-single-assignment
made-easy-test-series
numerical-answers
+
–
0
votes
1
answer
48
Construct the DAG for following statement. a+b*c+d+b*c
ambro
176
views
ambro
asked
Nov 5, 2023
Compiler Design
compiler-design
+
–
0
votes
1
answer
49
Static single assignment self doubt
Consider the intermediate code given below: $a=c+d$ $b=a+e$ $b=f*g$ $h=b*a$ $T=u+h$ If the code is converted into a static single assignment form then the minimum number of total variables required is? The answer is given as 9 but according ... $T = u + h$ Can anyone help me exactly what mistake am I doing or my approach is correct and given answer is wrong?
Consider the intermediate code given below:$a=c+d$$b=a+e$$b=f*g$$h=b*a$$T=u+h$If the code is converted into a static single assignment form then the minimum number of tot...
rexritz
394
views
rexritz
asked
Oct 22, 2023
Compiler Design
compiler-design
static-single-assignment
intermediate-code
+
–
0
votes
1
answer
50
Which of the following is LL(1) grammar?
A) $S\rightarrow aA\mid bBa$ $A\rightarrow bA\mid a$ $ B\rightarrow aB\mid \varepsilon$ B) $S\rightarrow Aa\mid Bb$ $ A\rightarrow \varepsilon $ $ B\rightarrow \varepsilon $ C) $E\rightarrow E+E\mid (E) \mid id$
A) $S\rightarrow aA\mid bBa$ $A\rightarrow bA\mid a$ $ B\rightarrow aB\mid \varepsilon$B) $S\rightarrow Aa\mid Bb$ $ A\rightarrow \varepsilon $ $ B\rightarrow...
rexritz
616
views
rexritz
asked
Oct 22, 2023
Compiler Design
compiler-design
ll-parser
+
–
Page:
« prev
1
2
3
4
5
6
7
...
67
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register