Slideshow
-
Cute Kajal Agarwal
Telugu Movie WP -
The hottest lips are seeing red
Actress WP -
17 Cheating Pictures Collection
Adults Only -
10 Unique Houses From Around the World
Scenery Wallpapers -
Small Birds have big Love
Birds WallPapers -
Cute Kiss
Love Wallpapers -
Black Taj Mahal
Truth About Blak Taj Mahaal -
India Festival Art painting
Oil Pinting Wp -
beautiful sceneries wallpapers
Scenery WP -
Cat And Bird Cute Friendship
Birds WP -
ed ed 6 Most Popular Ways Of Couple Hugging
Adults WP -
Indian Village Paintings
Oil Pinting Wp -
Awsome moments on well & girls
Oil Painting Wp -
hansika visits simbu birthday party
Actress WP
We know that computer understands instructions in machine code, i.e. in the form of 0s and 1s. It is difficult to write computer program directly in machine code. Nowadays, the programs are written mostly in high-level languages, i.e. BASIC, C-H-, PASCAL, etc. A program written in any high-level programming language (or written in assembly language) is called the Source Program.
The source code cannot be executed directly by the computer. The source program must be converted into machine code to run it on the computer. The program translated into machine code is known as Object Program.
Every language has its own language processor (or translator). Therefore, language processor is defined as:
The special translator system software that is used to translate the program written in high-level language (or Assembly language) into machine code is called language processor or translator program.
The language processors are divided into three types.
- Compilers
- Interpreters
- Assemblers
1. Compiler
The language processor that translates the complete source program as a whole in machine code before execution is called compiler. The C and C++ compilers are best examples of compilers.The program translated into machine code is called the object program. The source code is translated to object code successfully if it is free of errors. If there are any errors in the source code, the compiler specifies the errors at the end of compilation. The errors must be removed before the compiler can successfully compile the source code. The object program can be executed a number of times without translating it again.
2. Interpreter
The language processor that translates (converts) each statement of source program into machine code and executes it immediately before to translate the next statement is called Interpreter. If there is an error in the statement the interpreter terminates its translating process at that statement and displays an error message. The OWBASIC is an example of interpreter.he Interpreter differs from compiler that translates the entire source program into object program before execution.
The main advantage of Interpreter is that it makes easy to trace out and correct errors in the source program.
The main disadvantages of Interpreter are:
- It is a time consuming process of translating and executing statements one by one.
- Each time the program is run, the source code is translated and executed have a translator program (Interpreter) permanently in your computer.
3. Assembler
An assembler is third type of translator program. It is used to translate the program written in Assembly language into machine code. An assembler performs the translation process in similar way as compiler. But assembler is the translator program for low-level programming language, while a compiler is the translator program for high-level programming languages.Difference between Compiler & Interpreter
The main difference between compiler and interpreter is:
Compiler | Interpreter |
---|---|
1) It translates source code into object codes as a whole. | 1) It translates the statements of the source code one by one and execute immediately. |
2) It creates an object file. | 2) It does not create an object file. |
3) Program execution is very fast. | 3) Program execution is slow. |
4) Translator program is not required to translate the program each time you want to run the program. | 4) Translator program is required to translate the program each time you want to run the program. |
5) It does not make easier to correct the mistakes in the source code. | 5) It makes easier to correct the mistakes in the source code. |
6) Most of the high-level programming languages have compiler program. | 6) A few high-level programming languages have Iterpreter program. |
0 comments to "Language Processors"
Total Pageviews
Clock
Popular Posts
-
Battleship (2012) - 1Cd - SCamRip - {Telugu} Dubbed Battleship (2012) - 1Cd - SCamRip - {Telugu} Dubbed - X264 - AAC.mkv@Aditya (Size: ...
-
Men In Black 3 Telugu Dubbed (Size: 587.31 MB ) seeders: 92 leechers: 189 Men In Black 3 Telugu Dubbed Movie Download : HER...
-
Magadheerudu (2012) Telugu Dubbed 1CD R5 DVDRip x264 MP3.mkv 698.47 MB Magadheerudu Telugu Dubbed Movie Download: HERE Descri...
-
Ram Charan Racha (2012) telugu movie for free Racha Telugu Movie Download: HERE Seeders: 1 00 Leechers: 67 Movie: Rachcha Detected...
-
I will upload more facebook timeline covers without watermark. All are no watermark and free. If you need more full size facebook covers, ...
-
I love Google, Bing and Yahoo just as much as the next Internet user, but sometimes you really want to dig down into a particular subject....
-
In a sensational turn to the murder of Telugu Desam Party leader, Paritala Ravindra, the man accused of pumping bullets into him, Julakant...
-
Checkout these cool and funny facebook timeline cover photos without any watermark on the cover template.Facebook has made timeline feature...
-
Speakasiaonline scam set to wipe out crores. MLM ponzy scheme fraud could make thousands of people poorer by lakhs Speak Asia Online, which...
-
History about Korukonda Lakshmi Narsimha Swamy Temple Located at a distance of 20 kms from Rajahmundry, 60 kms from Kakinada, and 110 k...
Post a Comment