Professional Documents
Culture Documents
• Also, it checks if the source program conforms to the source language specifications. Hence, may give Error
messages, Warnings.
• It is primary used to refer programs that translate source code from high-level programming language to a
low-level programming language (assembly code, object code, machine code).
Some compiler implementations
• C Compiler
• gcc (GNU project, open source), clang (LLVM project, open source), etc.
• C++ Compiler
• g++ (GNU project, open source), clang++ (LLVM project, open source), etc.
• Java Compiler
• javac (OpenJDK, open source)
Source program
Tokens
Syntax analysis
Parse tree
Semantic analysis
Optimization
Optimization
Optimization
Optimization
Optimization
Optimization