![](https://www.gurukpo.com/wp-content/uploads/2015/08/26.jpg)
Compiler is a program which coverts High Level Language (source code) into assembly level language (executable code). Compiler works fast as compared to interpreter. Compiler comprises of following:
1. Lexical Analyzer (Generates Tokens),
2. Syntax analyzer (generates parser),
3. Semantic Analyzer (type checking),
4. Intermediate Code Generation (3-address code),
5.Code Optimization, and 6. Target code generation.