The IT Law Wiki


A compiler is

[a] computer program that is used to change a high-level programming language into machine language. It is similar to an assembler.[1]
a computer program which translates statements in a programming language (written by a person) into the internal code of the computer. The results of such translation is what actually makes the computer perform the required tasks.[2]


The compiler reads each high-level language instruction and replaces it with the appropriate sequence of machine language instructions. More sophisticated compilers then perform “optimization” — they may delete or rearrange machine language instructions in an effort to make the program execute more efficiently.

Source code versions of computer programs are typically compiled or translated into and sold as object code or machine language versions of those programs by the use of a compiler.[3]