KnowledgeBoat Logo
LoginJOIN NOW

Computer Science

Explain the following:

(a) Assembler

(b) Compiler

(c) Interpreter

Computer System

1 Like

Answer

(a) Assembler — Assembler is used to translate the program written in assembly language into machine code. The input of assembler is a source program that contains assembly language called mnemonics. The output generated by the assembler is the object code or machine code which is understandable by the computer.

(b) Compiler — The language processor that translates the complete source program as a whole in one go into machine code is called compiler.

(c) Interpreter — The language processor that translates a single statement of source program into machine code and executes it immediately before moving on to the next line 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.

Answered By

3 Likes


Related Questions