This is an old version, saved 3 Dec 2026, 18:29 by TechWritereditor. It is the current version.
Compiler
A compiler is software that translates source code written in a high-level programming language, such as C++, into machine-language instructions that a computer's central processing unit can execute.[1] Compilers are large programs that also check the source code for errors.[1]
How it works
A programmer writes instructions in a language designed for people to read. The compiler converts these into the numerical codes the machine understands.[2] Some compilers first produce an intermediate assembly language, which a separate program called an assembler turns into machine code; others generate machine language directly.[1] Because a program written in a high-level language can be compiled for different machines, the same source code can run on any system that has a suitable compiler.[2][3]
History
The American computer scientist Grace Hopper coined the term "compiler" and designed one of the first compilers in the early 1950s.[1] Working at Remington Rand on the UNIVAC I, her team developed A-0 in 1952, a compiler that translated mathematical code into binary code a machine could read.[3] Hopper later promoted COBOL, introduced in 1959, and in the 1960s led efforts to develop COBOL compilers.[3]
At IBM, John Backus led a small team, given a budget in 1953, to create a language that would translate human intent into a form computers could process.[2] The result, Fortran, was released commercially in 1957 as the IBM Mathematical Formula Translating System, with its compiler made available to users of the IBM 704.[2] The team, which included Lois Haibt, built the first optimising compiler. Sceptics doubted that compiled code could match hand-written code, but the FORTRAN compiler produced programs that ran nearly as fast as those crafted by hand.[2] As other manufacturers offered FORTRAN on their own machines, the language spread widely, and by the mid-1960s it had become the first national computing standard.[2]