Compiler: Difference between revisions

From Rosetta Code
Content added Content deleted
m (some links)
(improve the description)
Line 1: Line 1:
[[Category:Encyclopedia]]A compiler reads the source code of a program, and produces machine code or [[bytecode]].
[[Category:Encyclopedia]]A compiler reads the source code of a program, and produces machine code, [[bytecode]], or a transformation of the source into another form (e.g., into a language like [[C]]).


When generating object code, it is often the case that the resulting code must be then passed to a linking stage for conversion into an executable form. The linking stage is necessary for resolving references to libraries of code and adding any extra executable runtime that is required. (Some compilers will automatically link the code for you, so this step is not always visible.)

Some compilers translate source code into object code. This object code is then passed to a linker, which creates machine code. Other compilers translate into intermediate languages, like [[C]].


==See also==
==See also==

Revision as of 10:46, 6 July 2009

A compiler reads the source code of a program, and produces machine code, bytecode, or a transformation of the source into another form (e.g., into a language like C).

When generating object code, it is often the case that the resulting code must be then passed to a linking stage for conversion into an executable form. The linking stage is necessary for resolving references to libraries of code and adding any extra executable runtime that is required. (Some compilers will automatically link the code for you, so this step is not always visible.)

See also