Compiler Design

Cousins of compiler
  1. Preprocessor
  2. Assembler
  3. Linker/Loader
PHASES OF COMPILER DESIGN
  • LEXICAL PHASE 
  • SYNTAX PHASE 
  • SEMANTIC PHASE
  • INTERMEDIATE CODE GENERATOR
  • OPTIMISED CODE GENERATOR
  • TARGET CODE GENERATOR
RED COLOUR - FRONT END PHASE
BLUE COLOR - BACK END PHASE

LEXICAL ANALYSIS: valid tokens separation(lexeme) made(by removing white spaces from source program)
SYNTAX ANALYSIS: generating parse tree, symbol tree(parameter: position, type, constant/variable)
INTERMEDIATE CODE GENERATOR: creating temporary variable
OPTIMISED CODE GENERATOR: optimizing intermediate code
TARGET CODE GENERATOR: converting to assembly code

No comments:

Post a Comment