RTMNU TY IT syllabus

RTMNU · Third Year B.Tech Information Technology · NEP 2020

Compiler Design

BIT6T22 · Semester VI · 3 credits · College 30 + university 70

All notes for this subject
  1. Unit 1: Introduction to Compiler

    7 hours

    Compilers, interpreters and assemblers; the phases of a compiler and construction tools (LEX and YACC); bootstrapping and cross-compilers; error handling; top-down parsing with FIRST and FOLLOW and the LL(1) parser.

    Examined in the 70-mark end-semester paper

    • Compiler phases
    • Compiler-construction tools
    • Bootstrapping and compilers versus interpreters
    • Error detection and recovery in compilers
    • Top-down parsing: FIRST, FOLLOW and LL(1)
  2. Unit 2: Syntax Analysis

    8 hours

    Bottom-up parsing: shift-reduce parsing and LR parsing — SLR, CLR and LALR; operator grammars; ambiguity; parser generators (yacc, bison).

    Examined in the 70-mark end-semester paper

    • Bottom-up parsing: LR parsers
    • Operator-precedence parsing
    • Parse trees and ambiguity
    • Parser generators: YACC
  3. Unit 3: Semantic Analysis & Symbol Table

    7 hours

    Attribute grammars, syntax-directed definitions and the evaluation and flow of attributes in a syntax tree; syntax-directed translation; the symbol table — structure, attributes and management; the run-time environment — procedure activation, parameter passing, value return and memory allocation.

    Examined in the 70-mark end-semester paper

    • Syntax-directed translation
    • Symbol tables
    • Run-time storage organisation
  4. Unit 4: Intermediate Code Generation

    7 hours

    Translating language features and the forms of intermediate code; code improvement, control flow, basic blocks and flow graphs, data dependence; local, global and peephole optimisation.

    Examined in the 70-mark end-semester paper

    • Three-address code
    • Control flow and backpatching
    • Basic blocks and flow graphs
    • Code optimisation and peephole optimisation
    • Global data-flow analysis and loop optimisation
  5. Unit 5: Architecture Dependent Code Improvement

    7 hours

    Instruction scheduling for pipelining and loop optimisation for the cache; register allocation and target-code generation; type systems, data abstraction, compiling object-oriented features and non-imperative languages.

    Examined in the 70-mark end-semester paper

    • Register allocation and assignment
    • Code generation issues
    • Type checking

Unit contents are summarised from the official RTMNU syllabus . AiCanCode.org is not affiliated with Rashtrasant Tukadoji Maharaj Nagpur University (RTMNU).