..

2023-08-02

Mark split up

Component Breakdown Marks
CAT 3 x Quiz (3 + 3 + 4) 10
CAL 3 x Lab (10 + 15 + 15) 40
Midterm Theory 20
End Semester Theory 30

Lab portions

Lab No. Portions Tentative Date
1 ANTLR Scanner September 4th to 12th
2 ANTLR Parser October 25th to 30th
3 ANTLR Syntax Directed Translation November 27th to Dec 1

Types of errors

  • Syntax
  • Semantic

Compiler Phases

  • There are three parts to a compiler. They are
    • Frontend
    • Middle-end
    • Backend
  • The frontend consists of $Lexer \rightarrow Parser \rightarrow Semantic\ analysis$
  • Middle-end converts to 3 address representation
  • Backend does code optimization and code generation

Optimization Techniques

  • Strength reduction
  • Deadcode elimination
  • Loop Optimization

Types of Linking

  • Static
  • Dynamic

Types of loading

  • Static
  • Dynamic