Escolar Documentos
Profissional Documentos
Cultura Documentos
S.NO
1
TOPICS
COMPILER BASIC
DESIGN AND
CONSTRUCTION
A New Approach of
Complier Design in
Context of Lexical
Analyzer and Parser
Generation for NextGen
Languages
3
Development of Compiler
Design Techniques for
Effective
Code Optimisation and
Code Generation
JOURNAL URL
http://www.academia.edu/9036974/COMPILER_BASI
C_DESIGN_AND_CONSTRUCTION
http://www.ijcaonline.org/archives/volume6/number11/1
116-1462
http://www.ijetae.com/files/Volume4Issue3/IJETAE_03
14_87.pdf
http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?
arnumber=788716&abstractAccess=no&userType=inst
http://download.springer.com/static/pdf/621/
S.NO
1
TOPICS
New Trends in the
Optimization of C-Code
3
Lexical Analysis:
Comparison
Application of semantic
and lexical analysis to
technology forecasting by
trend analysis
http://scientificjournals.org/archive/vol1no3/vol1no3_5.pdf
JOURNAL URL
http://www.verifysoft.com/C-Code_Optimization.pdf
http://citeseerx.ist.psu.edu/viewdoc/download?
doi=10.1.1.78.2542&rep=rep1&type=pdf
http://inspire.pnnl.gov/Help/Content/LexAnalysis_Distribution.htm
http://www.academia.edu/16428626/Application_of_semanti
c_and_lexical_analysis_to_technology_forecasting_by_trend
_analysis
http://www.ijritcc.org/download/1427436031.pdf
http://download.springer.com/static/pd
S.NO
TOPICS
S.NO
UNIT
UNIT 1
Phases Of Compiler
UNIT 2
UNIT 3
TOPICS
UNIT 4
UNIT 5
ANIMATION TOPICS
S.NO
Animation TOPICS
url
Interpreters and
Compilers
https://www.youtube.com/watch?
v=_C5AHaS1mOA
https://www.youtube.com/watch?v=F_Et0vQXGcc
Intermediate Code
Generator
RECURSIVE
DESCENT PARSER
https://www.youtube.com/watch?v=HC8lXSJ8Kzo
ASSIGNMENT - 1
Branch: IT
Semester: VII
ASSIGNMENT - 2
Branch: IT
Semester: VI
{a b} {b/a}
ii)
State
Start
Accept
Inputs
a
7. What are Regular expressions? Discuss the procedure with example conversion of
regular expression into finite automata and vice-versa. Also discuss how to
minimize the number of states of a DFA.
8. Explain the syntax directed translation scheme for desk calculator. Also show the
sequence of moves by parser for the input string 30/5+4$.
9. Explain the syntax directed translation scheme for desk calculator which performs
+, * operations of simple data type. Also compute 23+5*45$.
10.Give a parse tree for the input string:
i + i (i * i)#
ASSIGNMENT - 3
Branch: IT
Semester: VII
1. What do you mean by a parse tree? How is it drawn? Explain with some example.
2. Define operator precedence grammar? How operator precedence relations are
defined for a pair of terminals a and b.
ASSIGNMENT - 4
Branch: IT
Semester: VI
1. Write the algorithm for construction of SLR parsing table. Write the sets of LR(0)
items for the grammar
EE+T|T
TT*F|F
F (E)
T id
b)
c)
i)
(a,a)
ii)
(a, ((a,a),(a,a)))
5. Explain the function of LR parsers. Give algorithm for constructing SLR parsing
table. Also construct the SLR table for grammar:
+T
T
T T*F
T F
F ()
F id
ASSIGNMENT - 5
Branch: IT
Semester: VI
Submitted
to:Mr.K.Dipu
Assignment giving
date
Assignment Collection
date
Assignment
check/discussion date
Nov 18, 16
Nov 25, 16
Nov 01, 16
b)
ASSIGNMENT - 6
Branch: IT
Semester: VI
2. Write the algorithm for construction of SLR parsing table. Construct the SLR
parsing table for the grammar.
EW+T|T
TT*F|F
F (E)/id
3. What is difference between error repair and error recovery? What of the
advantages of error repair over error recovery do you consider mmost important:
i)
to you personally.
ii)
to experienced programmers.
iii)
Explain why?
5. What are the different types of errors that can occur: What remedial action
does a compiler take in each?
6. Write a SCANNER for FORTRAN that uses look ahead to determine the
next token. Use an input buffer.
SEMINAR DETAILS
Subject: COMPILER DESIGN
Branch: IT
Semester: VI
S. No.
Topic
1-4
Lexical analysis
5-8
9-12
21-24
25-29
Code optimization
30-34
13-16
LTPC
3003
OBJECTIVES:
The student should be made to:
Learn the design principles of a Compiler.
Learn the various parsing techniques and different levels of translation
Learn how to optimize and effectively generate machine codes
UNIT I INTRODUCTION TO COMPILERS
10
Need and Role of the Parser-Context Free Grammars -Top Down Parsing General
Strategies- Recursive Descent Parser Predictive Parser-LL(1) Parser-Shift Reduce
Parser-LR Parser-LR (0)Item- Construction of SLR Parsing Table -Introduction to
LALR Parser - Error Handling and Recovery in Syntax Analyzer-YACC-Design of a
syntax Analyzer for a Sample Language .
UNIT IV SYNTAX DIRECTED TRANSLATION & RUN TIME ENVIRONMENT 12
Syntax directed Definitions-Construction of Syntax Tree-Bottom-up Evaluation of
SAttribute Definitions- Design of predictive translator - Type Systems-Specification
of a simple type checker- Equivalence of Type Expressions-Type Conversions.
RUN-TIME ENVIRONMENT: Source Language Issues-Storage Organization-Storage
Allocation- Parameter Passing-Symbol Tables-Dynamic Storage Allocation-Storage
Allocation in FORTAN.
UNIT V CODE OPTIMIZATION AND CODE GENERATION