| Line 1: |
Line 1: |
| − | '''Compilation''' is the process of translating code written in a programming language into executable machine code. It consists of 4 steps: | + | ==Legal meaning== |
| | + | A '''compilation''' is a work formed by the collection and assembling of preexisting materials or of data that are selected, coordinated, or arranged in such a way that the resulting work as a whole constitutes an original work of authorship. The term "compilation" includes collective works.<ref>The [[Copyright Act]], [[17 U.S.C. § 101]].</ref> |
| | | | |
| − | :1. '''Lexical analysis''': convert source code into sequence of tokens.
| + | ==Computer-related meaning== |
| | + | '''Compilation''' is the process of translating source code written in a high-level [[programming language]] into executable machine code. The program which performs this process is called a [[compiler]]. |
| | | | |
| − | :2. '''Syntactic analysis''': structure tokens into parse tree. | + | == References == |
| | + | <references/> |
| | + | [[Category:Law]] |
| | | | |
| − | :3. '''Semantic analysis''': annotate parse tree with semantic actions.
| |
| | | | |
| − | :4. '''Code generation''': produce the final machine code.
| + | [[Category:Computer Science]] |
| − | | |
| − | A software program that automatically performs this compilation process is called a compiler.
| |
| − | | |
| − | [[category:computer science]] | |