Changes

Jump to navigation Jump to search
11 bytes added ,  19:56, March 20, 2012
m
add wikilinks
Line 1: Line 1: −
A '''compiler''' is a computer program which translates source code written in a high-level [[programming language]] into executable machine code.  The act of doing this is called [[compilation]].
+
A '''compiler''' is a [[computer program]] which translates [[source code]] written in a high-level [[programming language]] into executable [[machine code]].  The act of doing this is called [[compilation]].
    
==Outline of the compilation process==
 
==Outline of the compilation process==
Line 19: Line 19:  
:'''Intermediate code generation''': use the annotated parse tree to generate code in some simple machine-independent intermediate language.
 
:'''Intermediate code generation''': use the annotated parse tree to generate code in some simple machine-independent intermediate language.
   −
:'''Register allocation''': map the symbolic names used in the intermediate code on to the registers available in the target machine code.
+
:'''Register allocation''': map the symbolic names used in the intermediate code on to the registers available in the target machine.
   −
:'''Assembly code generation''': translate the intermediate code into assembly language for the target machine.
+
:'''Assembly code generation''': translate the intermediate code into [[assembly language]] for the target machine.
    
:'''Assembly and linking''': translate the assembly language into executable machine code.
 
:'''Assembly and linking''': translate the assembly language into executable machine code.
SkipCaptcha
265

edits

Navigation menu