Interpreter



[in-tur-pri-ter] /ɪnˈtɜr prɪ tər/

noun
1.
a person who interprets.
2.
a person who provides an oral translation between speakers who speak different languages.
3.
Computers.

/ɪnˈtɜːprɪtə/
noun
1.
a person who translates orally from one language into another
2.
a person who interprets the work of others
3.
(computing)

n.

“one who translates spoken languages; a translator of written texts,” late 14c., from Old French interpreteor, from Late Latin interpretatorem, agent noun from interpretari (see interpret).
programming
A program which executes other programs. This is in contrast to a compiler which does not execute its input program (the “source code”) but translates it into executable “machine code” (also called “object code”) which is output to a file for later execution. It may be possible to execute the same source code either directly by an interpreter or by compiling it and then executing the machine code produced.
It takes longer to run a program under an interpreter than to run the compiled code but it can take less time to interpret it than the total required to compile and run it. This is especially important when prototyping and testing code when an edit-interpret-debug cycle can often be much shorter than an edit-compile-run-debug cycle.
Interpreting code is slower than running the compiled code because the interpreter must analyse each statement in the program each time it is executed and then perform the desired action whereas the compiled code just performs the action. This run-time analysis is known as “interpretive overhead”. Access to variables is also slower in an interpreter because the mapping of identifiers to storage locations must be done repeatedly at run time rather than at compile time.
There are various compromises between the development speed when using an interpreter and the execution speed when using a compiler. Some systems (e.g. some Lisps) allow interpreted and compiled code to call each other and to share variables. This means that once a routine has been tested and debugged under the interpreter it can be compiled and thus benefit from faster execution while other routines are being developed. Many interpreters do not execute the source code as it stands but convert it into some more compact internal form. For example, some BASIC interpreters replace keywords with single byte tokens which can be used to index into a jump table. An interpreter might well use the same lexical analyser and parser as the compiler and then interpret the resulting abstract syntax tree.
There is thus a spectrum of possibilities between interpreting and compiling, depending on the amount of analysis performed before the program is executed. For example Emacs Lisp is compiled to “byte-code” which is a highly compressed and optimised representation of the Lisp source but is not machine code (and therefore not tied to any particular hardware). This “compiled” code is then executed (interpreted) by a byte code interpreter (itself written in C). The compiled code in this case is machine code for a virtual machine which is implemented not in hardware but in the byte-code interpreter.
See also partial evaluation.
(1995-01-30)

Tagged:

Read Also:

  • Interpretive

    [in-tur-pri-tiv] /ɪnˈtɜr prɪ tɪv/ adjective 1. serving to ; explanatory. 2. deduced by . 3. made because of : an interpretive distortion of language. 4. of or relating to those arts that require an intermediary, as a performer, for realization, as in music or theater. 5. offering , explanations, or guidance, as through lectures, brochures, […]

  • Interpretive centre

    noun 1. (at a place of interest, such as a country park, historical site, etc) a building or group of buildings that provides interpretation of the place of interest through a variety of media, such as video displays and exhibitions of material, and, often, includes facilities such as refreshment rooms and gift shops Also called […]



  • Interpretively

    [in-tur-pri-tiv] /ɪnˈtɜr prɪ tɪv/ adjective 1. serving to ; explanatory. 2. deduced by . 3. made because of : an interpretive distortion of language. 4. of or relating to those arts that require an intermediary, as a performer, for realization, as in music or theater. 5. offering , explanations, or guidance, as through lectures, brochures, […]

  • Interpretive menu processor

    language (IMP) The language used to implement much of the user interface of the Alis office automation package from Applix, Inc. (1996-04-07)



Disclaimer: Interpreter definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.