< previous page page_11 next page >

Page 11
0011-01.gif
Figure 1-4
Levels of Abstraction
languages are easier to use than assembly languages or machine code because they are closer to English and other natural languages (see Figure 1-4).
A program called a compiler translates programs written in certain highlevel languages (C++, Pascal, FORTRAN, COBOL, Modula-2, and Ada, for example) into machine language. If you write a program in a high-level language, you can run it on any computer that has the appropriate compiler. This is possible because most high-level languages are standardized, which means that an official description of the language exists.*
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif 3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Compiler A program that translates a high-level language into machine code
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif 3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
*Some programming languagesLISP, Prolog, and many versions of BASIC, for exampleare translated into machine language by an interpreter rather than a compiler. The difference between a compiler and an interpreter is outside the scope of this textbook, which focuses only on compiled languages.

 
< previous page page_11 next page >