SlideShare a Scribd company logo
1 of 3
LESSON PLAN
Subject : Compiler Design
Subject Code : CS6660
Staff In-Charge : R.Narmatha
Class/Section/Sem : III/-/VI
UNIT I - INTRODUCTION TO COMPILERS 5
Translators-Compilation and Interpretation-Language processors -The Phases of Compiler-Errors Encountered in
Different Phases-The Grouping of Phases-Compiler Construction Tools -Programming Language basics.
Sl.No Description of Portions to
be Taught
Required
Periods
Teaching
Aids
References
1. Translators - Compilation and
Interpretation-Language processors
1 BB T.B.1
2. The Phases of Compiler 1 BB T.B.1
3. Errors Encountered in Different
Phases - The Grouping of Phases
1 BB T.B.1
4. Compiler Construction Tools 1 BB T.B.1,R.B.1
5. Programming Language basics 1 BB T.B.1
UNIT II - LEXICAL ANALYSIS 9
Need and Role of Lexical Analyzer-Lexical Errors-Expressing Tokens by Regular Expressions-Converting Regular
Expression to DFA- Minimization of DFA-Language for Specifying Lexical Analyzers-LEX-Design of Lexical
Analyzer for a sample Language.
Sl.No Description of Portions to
be Taught
Required
Periods
Teaching
Aids
References
6. Need and Role of Lexical Analyzer 1 BB T.B.1,R.B.2
7. Lexical Errors- Expressing Tokens
by Regular
Expressions
1
BB
T.B.1, R.B.2
8. Converting Regular Expression to
DFA
2 BB T.B.1, R.B.2
9. Minimization of DFA 2 BB T.B.1, R.B.2
10. Language for Specifying Lexical
Analyzers
1 BB T.B.1, R.B.2
11. LEX Tool 1 BB T.B.1, R.B.2
12. Design of Lexical Analyzer for a
sample
Language.
1
BB
T.B.1, R.B.2
UNIT III - SYNTAX ANALYSIS 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 inSyntax Analyzer-YACC-
Design of a syntaxAnalyzer for a Sample Language .
Sl.No Description of Portions to
be Taught
Required
Periods
Teaching
Aids
References
13. Need and Role of the Parser 1 BB T.R.1, R.B.3
14. Context Free Grammars 1 BB T.B.1, R.B.3
15. Top Down Parsing 1 BB T.B.1,W.1
16. General Strategies-Recursive
Descent Parser
Predictive Parser-LL(1) Parser
1
BB
T.B.1,W.1
17. Shift Reduce Parser-LR Parser-LR
(0)Item
2 BB T.B.1,W.1
18. Construction of SLR Parsing Table 1 BB T.B.1,W.1
19. Introduction to LALR Parser 1 BB T.B.1,W.1
20. Error Handling and Recovery in
Syntax
Analyzer
1
BB
T.B.1, R.B.2
21. YACC-Design of a syntax
Analyzer for a
Sample Language
1
BB
T.B.1,R.B.1
UNIT IV- SYNTAX DIRECTED TRANSLATION & RUN TIME ENVIRONMENT 12
Syntax directed Definitions-Construction of Syntax Tree-Bottom-up Evaluation of S-Attribute 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.
Sl.No Description of Portions to
be Taught
Required
Periods
Teaching
Aids
References
22. Syntax directed Definitions 1 BB T.B.1, R.B.2
23. Construction of Syntax Tree-
Bottom-up
Evaluation of S-Attribute
Definitions
1
BB
T.B.1, R.B.2
24. Design of predictive translator 1 BB T.B.1, R.B.2
25. Type Systems-Specification of a
simple type
Checker
1
BB
T.B.1, R.B.2
26. Equivalence of Type Expressions-
Type 1
BB
T.B.1, R.B.2
Conversions.
27. Source Language Issues 1 BB T.B.1, R.B.2
28. Storage Organization and Storage
Allocation
1 BB T.B.1, R.B.2
29. Parameter Passing 1 BB T.B.1, R.B.2
30. Symbol Tables 2 BB T.B.1, R.B.2
31. Dynamic Storage Allocation 1 BB T.B.1, R.B.2
32. Storage Allocation in FORTAN 1 BB T.B.1,R.B.1
UNIT V - CODE OPTIMIZATION AND CODE GENERATION 9
Principal Sources of Optimization-DAG- Optimization of Basic Blocks-Global Data Flow Analysis-Efficient Data
Flow Algorithms-Issues in Design of a Code Generator - A Simple Code Generator Algorithm.
Sl.No Description of Portions to
be Taught
Required
Periods
Teaching
Aids
References
33. Principal Sources of Optimization 1 BB T.B.1, R.B.1
34. DAG 2 BB T.B.1, R.B.1
35. Optimization of Basic Blocks 1 BB T.B.1, R.B.1
36. Global Data Flow Analysis 1 BB T.B.1, R.B.1
37. Efficient Data Flow Algorithms 2 BB T.B.1, R.B.1
38. Issues in Design of a Code
Generator
1 BB T.B.1, R.B.1
39. A Simple Code Generator
Algorithm
1 BB T.B.1, R.B.1
TEXTBOOK:
1. Alfred V Aho, Monica S. Lam, Ravi Sethi and Jeffrey D Ullman, “Compilers – Principles,
Techniques and Tools”, 2nd Edition, Pearson Education, 2007.
REFERENCES:
1. Randy Allen, Ken Kennedy, “Optimizing Compilers for Modern Architectures: A Dependence-based
Approach”, Morgan Kaufmann Publishers, 2002.
2. Steven S. Muchnick, “Advanced Compiler Design and Implementation, “Morgan Kaufmann Publishers -
Elsevier Science, India, Indian Reprint 2003.
3. Keith D Cooper and Linda Torczon, “Engineering a Compiler”, Morgan Kaufmann Publishers Elsevier
Science, 2004.
4. Charles N. Fischer, Richard. J. LeBlanc, “Crafting a Compiler with C”, Pearson Education,2008.
FACULTY INCHARGE HOD

More Related Content

Similar to Compiler lesson plan

RDA and Editing Bibliographic Records
RDA and Editing Bibliographic RecordsRDA and Editing Bibliographic Records
RDA and Editing Bibliographic RecordsShana McDanold
 
Compiler Design(Nanthu)
Compiler Design(Nanthu)Compiler Design(Nanthu)
Compiler Design(Nanthu)guest91cc85
 
Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)guest251d9a
 
Compilerdesignnew 091219090526-phpapp02
Compilerdesignnew 091219090526-phpapp02Compilerdesignnew 091219090526-phpapp02
Compilerdesignnew 091219090526-phpapp02Anil Thakral
 
4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdfSwapnaliPawar27
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programmingsoni_nits
 
Compiler design important questions
Compiler design   important questionsCompiler design   important questions
Compiler design important questionsakila viji
 
SetFocus Reporting Services Project
SetFocus Reporting Services ProjectSetFocus Reporting Services Project
SetFocus Reporting Services ProjectDavidPerley
 
Advanced Bash Scripting Guide 2002
Advanced Bash Scripting Guide 2002Advanced Bash Scripting Guide 2002
Advanced Bash Scripting Guide 2002duquoi
 
Turbo C
Turbo CTurbo C
Turbo Cnat236
 
Microprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdfMicroprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdfEngineering Funda
 
2014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-2014
2014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-20142014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-2014
2014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-2014Paige Andrew
 
B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)MahiboobAliMulla
 
CCXG Forum, September 2020, Andrew Marquard
CCXG Forum, September 2020, Andrew MarquardCCXG Forum, September 2020, Andrew Marquard
CCXG Forum, September 2020, Andrew MarquardOECD Environment
 
Lab 4 microcontroller
Lab 4 microcontrollerLab 4 microcontroller
Lab 4 microcontrollermkazree
 
Compilers section 4.7
Compilers section 4.7Compilers section 4.7
Compilers section 4.7myasir16
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03desta_gebre
 
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxCOMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxdonnajames55
 

Similar to Compiler lesson plan (20)

RDA and Editing Bibliographic Records
RDA and Editing Bibliographic RecordsRDA and Editing Bibliographic Records
RDA and Editing Bibliographic Records
 
Compiler Design(Nanthu)
Compiler Design(Nanthu)Compiler Design(Nanthu)
Compiler Design(Nanthu)
 
Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)Compiler Design(NANTHU NOTES)
Compiler Design(NANTHU NOTES)
 
Compilerdesignnew 091219090526-phpapp02
Compilerdesignnew 091219090526-phpapp02Compilerdesignnew 091219090526-phpapp02
Compilerdesignnew 091219090526-phpapp02
 
4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf4.LanguageProcessors and language Processing Activities.pdf
4.LanguageProcessors and language Processing Activities.pdf
 
17431 microprocessor & programming
17431  microprocessor & programming17431  microprocessor & programming
17431 microprocessor & programming
 
Compiler design important questions
Compiler design   important questionsCompiler design   important questions
Compiler design important questions
 
SetFocus Reporting Services Project
SetFocus Reporting Services ProjectSetFocus Reporting Services Project
SetFocus Reporting Services Project
 
Advanced Bash Scripting Guide 2002
Advanced Bash Scripting Guide 2002Advanced Bash Scripting Guide 2002
Advanced Bash Scripting Guide 2002
 
Turbo C
Turbo CTurbo C
Turbo C
 
Microprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdfMicroprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdf
 
2014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-2014
2014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-20142014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-2014
2014 ALA Annual Presentation FINAL- CARTOGRAPHIC RESOURCES AND RDA 6-25-2014
 
Unit1 cd
Unit1 cdUnit1 cd
Unit1 cd
 
B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)
 
CCXG Forum, September 2020, Andrew Marquard
CCXG Forum, September 2020, Andrew MarquardCCXG Forum, September 2020, Andrew Marquard
CCXG Forum, September 2020, Andrew Marquard
 
Lab 4 microcontroller
Lab 4 microcontrollerLab 4 microcontroller
Lab 4 microcontroller
 
Compilers section 4.7
Compilers section 4.7Compilers section 4.7
Compilers section 4.7
 
Programming.language
Programming.languageProgramming.language
Programming.language
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
 
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxCOMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
 

Recently uploaded

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 

Recently uploaded (20)

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 

Compiler lesson plan

  • 1. LESSON PLAN Subject : Compiler Design Subject Code : CS6660 Staff In-Charge : R.Narmatha Class/Section/Sem : III/-/VI UNIT I - INTRODUCTION TO COMPILERS 5 Translators-Compilation and Interpretation-Language processors -The Phases of Compiler-Errors Encountered in Different Phases-The Grouping of Phases-Compiler Construction Tools -Programming Language basics. Sl.No Description of Portions to be Taught Required Periods Teaching Aids References 1. Translators - Compilation and Interpretation-Language processors 1 BB T.B.1 2. The Phases of Compiler 1 BB T.B.1 3. Errors Encountered in Different Phases - The Grouping of Phases 1 BB T.B.1 4. Compiler Construction Tools 1 BB T.B.1,R.B.1 5. Programming Language basics 1 BB T.B.1 UNIT II - LEXICAL ANALYSIS 9 Need and Role of Lexical Analyzer-Lexical Errors-Expressing Tokens by Regular Expressions-Converting Regular Expression to DFA- Minimization of DFA-Language for Specifying Lexical Analyzers-LEX-Design of Lexical Analyzer for a sample Language. Sl.No Description of Portions to be Taught Required Periods Teaching Aids References 6. Need and Role of Lexical Analyzer 1 BB T.B.1,R.B.2 7. Lexical Errors- Expressing Tokens by Regular Expressions 1 BB T.B.1, R.B.2 8. Converting Regular Expression to DFA 2 BB T.B.1, R.B.2 9. Minimization of DFA 2 BB T.B.1, R.B.2 10. Language for Specifying Lexical Analyzers 1 BB T.B.1, R.B.2 11. LEX Tool 1 BB T.B.1, R.B.2 12. Design of Lexical Analyzer for a sample Language. 1 BB T.B.1, R.B.2
  • 2. UNIT III - SYNTAX ANALYSIS 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 inSyntax Analyzer-YACC- Design of a syntaxAnalyzer for a Sample Language . Sl.No Description of Portions to be Taught Required Periods Teaching Aids References 13. Need and Role of the Parser 1 BB T.R.1, R.B.3 14. Context Free Grammars 1 BB T.B.1, R.B.3 15. Top Down Parsing 1 BB T.B.1,W.1 16. General Strategies-Recursive Descent Parser Predictive Parser-LL(1) Parser 1 BB T.B.1,W.1 17. Shift Reduce Parser-LR Parser-LR (0)Item 2 BB T.B.1,W.1 18. Construction of SLR Parsing Table 1 BB T.B.1,W.1 19. Introduction to LALR Parser 1 BB T.B.1,W.1 20. Error Handling and Recovery in Syntax Analyzer 1 BB T.B.1, R.B.2 21. YACC-Design of a syntax Analyzer for a Sample Language 1 BB T.B.1,R.B.1 UNIT IV- SYNTAX DIRECTED TRANSLATION & RUN TIME ENVIRONMENT 12 Syntax directed Definitions-Construction of Syntax Tree-Bottom-up Evaluation of S-Attribute 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. Sl.No Description of Portions to be Taught Required Periods Teaching Aids References 22. Syntax directed Definitions 1 BB T.B.1, R.B.2 23. Construction of Syntax Tree- Bottom-up Evaluation of S-Attribute Definitions 1 BB T.B.1, R.B.2 24. Design of predictive translator 1 BB T.B.1, R.B.2 25. Type Systems-Specification of a simple type Checker 1 BB T.B.1, R.B.2 26. Equivalence of Type Expressions- Type 1 BB T.B.1, R.B.2
  • 3. Conversions. 27. Source Language Issues 1 BB T.B.1, R.B.2 28. Storage Organization and Storage Allocation 1 BB T.B.1, R.B.2 29. Parameter Passing 1 BB T.B.1, R.B.2 30. Symbol Tables 2 BB T.B.1, R.B.2 31. Dynamic Storage Allocation 1 BB T.B.1, R.B.2 32. Storage Allocation in FORTAN 1 BB T.B.1,R.B.1 UNIT V - CODE OPTIMIZATION AND CODE GENERATION 9 Principal Sources of Optimization-DAG- Optimization of Basic Blocks-Global Data Flow Analysis-Efficient Data Flow Algorithms-Issues in Design of a Code Generator - A Simple Code Generator Algorithm. Sl.No Description of Portions to be Taught Required Periods Teaching Aids References 33. Principal Sources of Optimization 1 BB T.B.1, R.B.1 34. DAG 2 BB T.B.1, R.B.1 35. Optimization of Basic Blocks 1 BB T.B.1, R.B.1 36. Global Data Flow Analysis 1 BB T.B.1, R.B.1 37. Efficient Data Flow Algorithms 2 BB T.B.1, R.B.1 38. Issues in Design of a Code Generator 1 BB T.B.1, R.B.1 39. A Simple Code Generator Algorithm 1 BB T.B.1, R.B.1 TEXTBOOK: 1. Alfred V Aho, Monica S. Lam, Ravi Sethi and Jeffrey D Ullman, “Compilers – Principles, Techniques and Tools”, 2nd Edition, Pearson Education, 2007. REFERENCES: 1. Randy Allen, Ken Kennedy, “Optimizing Compilers for Modern Architectures: A Dependence-based Approach”, Morgan Kaufmann Publishers, 2002. 2. Steven S. Muchnick, “Advanced Compiler Design and Implementation, “Morgan Kaufmann Publishers - Elsevier Science, India, Indian Reprint 2003. 3. Keith D Cooper and Linda Torczon, “Engineering a Compiler”, Morgan Kaufmann Publishers Elsevier Science, 2004. 4. Charles N. Fischer, Richard. J. LeBlanc, “Crafting a Compiler with C”, Pearson Education,2008. FACULTY INCHARGE HOD