Difference between revisions of "Compilation"
Jump to navigation
Jump to search
(New page: '''Compilation''' is the process of translating code written in a programming language into executable machine code. It consists of 4 steps: :1. '''Lexical analysis''': convert source co...) |
|||
| Line 9: | Line 9: | ||
:4. '''Code generation''': produce the final machine code. | :4. '''Code generation''': produce the final machine code. | ||
| − | A software program that automatically performs this compilation process is called a compiler. | + | A software program that automatically performs this compilation process is called a '''compiler'''. |
[[category:computer science]] | [[category:computer science]] | ||
Revision as of 07:44, May 20, 2007
Compilation is the process of translating code written in a programming language into executable machine code. It consists of 4 steps:
- 1. Lexical analysis: convert source code into sequence of tokens.
- 2. Syntactic analysis: structure tokens into parse tree.
- 3. Semantic analysis: annotate parse tree with semantic actions.
- 4. Code generation: produce the final machine code.
A software program that automatically performs this compilation process is called a compiler.