Saturday, February 27, 2010

Compiler Based and Interpreter Based Language

A program written HLL (source program) needs to be translated into its equivalent machine code (object program) before it can be run. Depending upon the relationship between the language translation process and its execution, HLL can be characterised as

1.Compiler-Oriented Language:

compiler-oriented language is one which the entire source program is analysed and translated language is one which as soon as one source code instruction is translated into its equivalent machine code, the instruction it immediately executed. Thus the language translation software, whether compiler or interpreter, takes as its input, source program written in HLL and produces equivalent machine code or object program as output.

Translator:

Program which convert a source code in any other language ‘mostly machine code’ are called translator translate its program. Translated programs are directly executable because they are in machine language (i.e. binary language) which is directly understandable by any computer.

A translator is a program that takes as input a program written in one programming language(e.g. a high level language) known as source language and procedures as output a program in another language (machine language) known as target language).”

Compiler

Compiler are programs which translate the high level procedural language programs into machine instructions. Compiler goes through a series of steps to examine and modify source code during the several compilation process. Each source code instruction typically gives a list to several machine code instructions.
Compiler is a program which takes as input a program of a high level language and produces object program in machine code”.

No comments:

Post a Comment