Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged code-optimization
0
votes
1
answer
1
compiler design tcompiler-design-timothy-g-griffin
6. Generate code for the following C program using any code generation algorithm. [3 Marks] main() { int x, a, b, c, d, e; x= a + b -( c + d ) * e }
Ebrahim
asked
in
Compiler Design
Feb 1
by
Ebrahim
109
views
compiler-design
syntax-directed-translation
code-optimization
parsing
ullman
0
votes
0
answers
2
compiler-design-timothy-g-griffin
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
asked
in
Compiler Design
Jan 12
by
Ebrahim
77
views
compiler-design
parsing
ullman
syntax-directed-translation
code-optimization
0
votes
0
answers
3
compiler-design-timothy-g-griffin
Please provide in detail solution step by step 5. 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 Please provid in detail solution step by step
Ebrahim
asked
in
Compiler Design
Jan 11
by
Ebrahim
91
views
compiler-design
syntax-directed-translation
parsing
code-optimization
0
votes
2
answers
4
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.
Ebrahim
asked
in
Compiler Design
Dec 18, 2023
by
Ebrahim
260
views
compiler-design
syntax-directed-translation
code-optimization
0
votes
1
answer
5
Test Series
$\text{ Anyone please explain : }$
Rahhul A
asked
in
Compiler Design
Nov 13, 2023
by
Rahhul A
274
views
compiler-design
code-optimization
process-and-threads
threads
intermediate-code
0
votes
1
answer
6
Madeasy test Series
Please explain how 2?
SKMAKM
asked
in
Compiler Design
Jul 29, 2022
by
SKMAKM
317
views
code-optimization
made-easy-test-series
0
votes
1
answer
7
Live Variable Analysis | Made Easy Full Syllabus Test
A variable v is live at a program point p if some path from p to program exit contains an r-value occurrence of v which is not preceded by an l-value occurrence of v . That is, the variable should be referenced before ... zero as from the exit point there are no such definitions, to begin with? This is the solution they have provided :
palashbehra5
asked
in
Compiler Design
Jan 11, 2022
by
palashbehra5
1.1k
views
compiler-design
made-easy-test-series
live-variable-analysis
code-optimization
0
votes
1
answer
8
Made Easy Test
How to approach such questions ?
Prasad Deshmukh
asked
in
Compiler Design
Dec 21, 2021
by
Prasad Deshmukh
317
views
compiler-design
code-optimization
made-easy-test-series
19
votes
2
answers
9
GATE CSE 2021 Set 2 | Question: 30
Consider the following $\text{ANSI C}$ code segment: z=x + 3 + y->f1 + y->f2; for (i = 0; i < 200; i = i + 2) { if (z > i) { p = p + x + 3; q = q + y->f1; } else { p = p + y->f2; q = q + x + 3; } ... $\textsf{y ->f2}$) in the optimized code, respectively, are: $403$ and $102$ $203$ and $2$ $303$ and $102$ $303$ and $2$
Arjun
asked
in
Compiler Design
Feb 18, 2021
by
Arjun
9.6k
views
gatecse-2021-set2
code-optimization
compiler-design
2-marks
12
votes
4
answers
10
GATE CSE 2021 Set 2 | Question: 38
For a statement $S$ in a program, in the context of liveness analysis, the following sets are defined: $\text{USE}(S)$ : the set of variables used in $S$ $\text{IN}(S)$ : the set of variables that are live at the entry of $S$ $\text{OUT}(S)$ : the set of variables ... S_2$) }\cup \text{ OUT ($S_2$)}$ $\text{OUT ($S_1$)} = \text{USE ($S_1$)} \cup \text{IN ($S_2$)}$
Arjun
asked
in
Compiler Design
Feb 18, 2021
by
Arjun
6.6k
views
gatecse-2021-set2
code-optimization
live-variable-analysis
compiler-design
2-marks
12
votes
4
answers
11
GATE CSE 2021 Set 1 | Question: 50
Consider the following $C$ code segment: a = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f; In a compiler, this code segment is represented internally as a directed acyclic graph $\text{(DAG)}$. The number of nodes in the $\text{DAG}$ is _____________
Arjun
asked
in
Compiler Design
Feb 18, 2021
by
Arjun
10.0k
views
gatecse-2021-set1
compiler-design
code-optimization
directed-acyclic-graph
numerical-answers
2-marks
1
vote
1
answer
12
NIELIT Scientific Assistant A 2020 November: 50
Some code optimizations are carried out on the intermediate code because: they enhance the portability of the compiler to other target processors program analysis is more accurate on intermediate code than on machine code the ... cannot otherwise be used for optimization the information from the front end cannot otherwise be used for optimization
gatecse
asked
in
Compiler Design
Dec 9, 2020
by
gatecse
576
views
nielit-sta-2020
compiler-design
code-optimization
normal
1
vote
1
answer
13
NIELIT Scientific Assistant A 2020 November: 53
Which of the following is not true for tree and graph? A tree is a graph A graph is a tree Tree can have a cycle Tree is a $\text{DAG}$
gatecse
asked
in
Compiler Design
Dec 9, 2020
by
gatecse
432
views
nielit-sta-2020
compiler-design
code-optimization
directed-acyclic-graph
1
vote
1
answer
14
NIELIT Scientific Assistant A 2020 November: 66
Peephole optimization is a : Loop optimization Local optimization Constant folding Data flow analysis
gatecse
asked
in
Compiler Design
Dec 9, 2020
by
gatecse
436
views
nielit-sta-2020
compiler-design
code-optimization
2
votes
4
answers
15
NIELIT 2017 DEC Scientist B - Section B: 5
Which of the following is machine independent optimization? Loop optimization Redundancy Elimination Folding All of the option
Lakshman Bhaiya
asked
in
Compiler Design
Mar 30, 2020
by
Lakshman Bhaiya
8.8k
views
nielit2017dec-scientistb
compiler-design
code-optimization
1
vote
1
answer
16
NIELIT 2017 DEC Scientist B - Section B: 42
The optimization phase in a compiler generally Reduces the space of the code Optimizes the code to reduce execution time Both (A) and (B) Neither (A) nor (B)
Lakshman Bhaiya
asked
in
Compiler Design
Mar 30, 2020
by
Lakshman Bhaiya
1.7k
views
nielit2017dec-scientistb
compiler-design
code-optimization
1
vote
1
answer
17
UGC NET CSE | December 2006 | Part 2 | Question: 35
Peer-hole optimization is a form of : loop optimization local optimization constant folding data flow analysis
go_editor
asked
in
Compiler Design
Mar 27, 2020
by
go_editor
1.2k
views
ugcnetcse-dec2006-paper2
compiler-design
code-optimization
3
votes
1
answer
18
ISRO2020-42
Which of the following is a type of a out-of-order execution, with the reordering done by a compiler loop unrolling dead code elimination strength reduction software pipelining
Satbir
asked
in
Compiler Design
Jan 13, 2020
by
Satbir
2.8k
views
isro-2020
compiler-design
code-optimization
normal
Page:
1
2
3
4
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(683)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
243k
comments
79.7k
users
Recent questions tagged code-optimization
Recent Blog Comments
Hlo I'm Rupesh I got AIR 3485 in gate CS and AIR...
@Ajay Sasank here is the direct link...
Thank you for the post didi My GATE 2023 & 2024...
I Hope it helps 😊
Today's best post I seen thank you for motivation