Sie sind auf Seite 1von 2

Name; Setsoafia Otto-Michael Selassie B020908119 (BIT Level 400 morning) Subject; Compilers and Translators

History of Compilers A compiler is a computer program (or set of programs) that transforms source code written in a programming language (the source language) into another computer language (target language, often having a binary form known as object code). The most common reason for wanting to transform source code is to create an executable. The term compiler was originally coined in the early 1950s by Grace Murray Hopper. Translation was viewed as the compilation of a sequence of machine language subprograms selected from a library. One of the first real compilers was the FORTRAN compiler of the late 1950s. It allowed a programmer to use a problem oriented source language. Software for early computers was primarily written in assembly language for many years. Higher level programming languages were not invented until the benefits of being able to reuse software on different kinds of CPUs started to become significantly greater than the cost of writing a compiler. The very limited memory capacity of early computers also created many technical problems when implementing a compiler. Towards the end of the 1950s, machine-independent programming languages were first proposed. Subsequently, several experimental compilers were developed. The first compiler was written by Grace Hopper, in 1952, for the A-0 programming language. The FORTRAN team led by John Backus at IBM is generally credited as having introduced the first complete compiler in 1957. COBOL was an early language to be compiled on multiple architectures, in 1960. In many application domains the idea of using a higher level language quickly caught on. Because of the expanding functionality supported by newer programming languages and the increasing complexity of computer architectures, compilers have become more and more complex. Early compilers were written in assembly language. The first self-hosting compiler capable of compiling its own source code in a high-level language was created for Lisp by Tim Hart and Mike Levin at MIT in 1962. Since the 1970s it has become common practice to implement a compiler in the language it compiles, although both Pascal and C have been popular choices for implementation language. Building a self-hosting compiler is a bootstrapping problem, the first such compiler for a language must be compiled either by a compiler written in a different

language, or (as in Hart and Levin's Lisp compiler) compiled by running the compiler in an interpreter. Compilers enabled the development of programs that are machine-independent. Before the development of FORTRAN (formula translator), the first higher-level language, in the 1950s, machine-dependent assembly language was widely used. While assembly language produces more reusable and relocatable programs than machine code on the same architecture, it has to be modified or rewritten if the program is to be executed on different hardware architecture.

With the advance of high-level programming languages soon followed after FORTRAN, such as COBOL, C, BASIC, programmers can write machine-independent source programs. A compiler translates the high-level source programs into target programs in machine languages for the specific hardware. Once the target program is generated, the user can execute the program. Programming has been made a lot easier with the compiler and it is in this note that reference and recognition must be given to the early programmers and developers of the compiler. Programmers no longer have to worry about the basic language of the machine and how it works and this has gone a long way to improve the development of programs to help make life easier.

References; http://en.wikipedia.org/wiki/Compiler

Das könnte Ihnen auch gefallen