

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Course Contents 1 Overview of High-Level Languages and Translation 1.1 Levels of Programming Languages 1.2 Need for High-Level Languages 1.3 Advantages of High-Level Languages 1.4 Language Translation: Compilation and Interpretation 1.5 Phases of the Compilation Process 2 Language Definition 2.1 Syntax Specification 2.1.1 Syntax Diagrams 2.1.2 BNF Notation 2.2 Chomsky’s Classification of Grammars 2.2.1 Free Grammars (type 0) 2.2.2 Context-Sensitive Grammars (type 1) 2.2.3 Context-Free Grammars (type 2) 2.2.4 Regular Grammars (type 3) 2.3 Semantics Specification 3 Lexical Analysis 3.1 Role of a Lexical Analyzer (Scanner) 3.2 Finite-State Automata 3.3 Notation of Regular Expressions 3.4 Conversion of Regular Expressions into DFAs 3.5 Writing a Lexical Analyzer using DFAs 3.6 Lexical Analysis tools 4 Syntax and Semantic Analysis 4.1 Role of a Syntax Analyzer (Parser) 4.2 Classification of Grammars for Parsing 4.2.1 LL(k) Grammars 4.2.2 LR(k) Grammars 4.3 Top-Down Parsing 4.3.1 Constructing a parse table 4.3.2 Using a parse table for parsing 4.4 Bottom-Up Parsing 4.4.1 Shift-reduce parsing 4.4.2 Constructing and using a precedence matrix for parsing 4.4.3 SLR Parsing 4.4.4 Comparison of the top-down and bottom-up methods 4.5 Parsing tools 4.6 Semantic Analysis 4.6.1 Role of a Semantic Analyzer 4.6.2 Symbol Table handling techniques 4.6.3 Using the symbol table in semantic analysis 5 Code Generation 5.1 Runtime Environments 5.1.1 Fully static environments 5.1.2 Stack-based environments
5.1.3 Fully dynamic environments 5.2 Storage Allocation strategies 5.3 Code Generation Techniques 5.3.1 Assignment and expressions 5.3.2 Boolean expressions 5.3.3 Sequence control 5.3.4 Subprograms 6 Code Optimization 6.1 Eliminating Redundant Code 6.2 Folding Constants 6.3 Loop Optimization Techniques 6.3.1 Loop Unrolling 6.3.2 Loop Invariant Elimination 6.3.3 Strength Reduction 6.4 Expression/Statement Rewriting 6.5 Peephole optimization