TRANSLATORS
There are three types of translators, namely Assembler, Compiler and Interpreter. Assembler converts one assembly language statement into a single machine language instruction. . Depending on its implementation, a high-level language employs a compiler or an interpreter or both for translation. One statement in a high-level programming language will be translated into several machine language instructions. Both compiler and interpreter translate a program written in high-level language into machine language but in different fashion. Compiler translates the entire source program into object program at once and then the object files are linked to produce a single executable file. Unlike compiler, an interpreter translates one line of source code at a time—then executes it—before translating the next one and it does this every time the program executes. BASIC is a language that is usually implemented with an interpreter. Translation using an interpreter is slower than that using a compiler. The interpreter translates each line of source code to machine code each time the program is executed. With respect to debugging, an interpreted language is better than the compiled language. In an interpreter, syntax error is brought to the attention of the programmer immediately so that the programmer can make necessary corrections during program development. The Java language uses both a compiler and an interpreter.
Frequently Asked Questions
Recommended Posts:
- What is a Computer ?
- Introduction - What Is A Computer
- Evolution Of The Computer- A Brief History
- Generations Of Computers
- Classification Of Computers
- Anatomy Of A Computer
- Memory Revisited
- What is Operating System And How It Loads
- Operational Overview Of CPU
- Introduction To Number System
- Base Of A Number System
- Basic Internet Terminology, Types Of Internet Connections, Uses And Hazards Of Internet
- COMPUTER FUNDAMENTALS AND PROGRAMMING IN C
- COMPUTER FUNDAMENTALS AND PROGRAMMING IN C
- COMPUTER FUNDAMENTALS AND PROGRAMMING IN C