Compiler Design

Course Plan:

Theory:              Download Compiler Design Course Plan

Lab:                    Download Compiler Design Laboratory Course Plan

Lab Manual:      Download Compiler Design Laboratory Manual

Question bank:

UNIT – I INTRODUCTION TO COMPILER

        • Introduction to compiler-The structure of compiler
        • Lexical analysis-The Role of Lexical analyzer
        • Input Buffering
        • Specification of tokens
        • Recognition of tokens
        • Lexical analyzer generator

UNIT II : LEXICAL ANALYSIS

        • Finite Automata
        • Regular expressions to an NFA
        • Optimization of DFA
        • The Role of parser
        • Context free grammars

Download Compiler Design CSE304 – Unit 1 & 2 Notes.pdf

UNIT – III SYNTAX ANALYSIS

UNIT – IV CODE GENERATION

        • Issues in the design of code generator
        • The target Language
        • Addresses in target code
        • Basic Blocks and Flow Graphs
        • A simple Code generator
        • DAG representation of Basic Blocks

      Refer Text Book

UNIT – V CODE OPTIMIZATION AND RUN TIME ENVIRONMENTS

        • Introduction– Principal Sources of Optimization
        • Peephole optimization
        • Optimization of basic Blocks
        • Loops in Flow Graphs
        • Run time environments-Storage organization
        • Stack allocation of space
        • Access to non local data on the stack

        Refer Text Book