Beruflich Dokumente
Kultur Dokumente
Memory binding
Working of compiler
1)Lexical Analysis
2) Syntax Analysis
3) Semantic Analysis
4) IR Generation
5) IR Optimization
6) Code Generation
7) Optimization.
Given a sample program:
1. Lexical Analysis
Convert a program into sequence of tokens.
2. Syntax Analysis
Recover the structure described by using series of tokens from previous scanner.
3. Semantic Analysis
Ensures program has a well-defined meaning.
4. IR Generation
5. IR Optimization
6. Code Generation
7. Optimization