Language Translators

 Q#1: Describe the following translators; i) Compiler          ii) Interpreter              c) Assembler

Ans:

i)                    Compiler:

A compiler is a translator used to convert high-level programming language to low level programming language. Compiler takes time to do its work as it translates the whole code all at once and creates an executable file. It converts the whole program in one session, creates executable file and reports errors detected after conversion.

 ii)                  Interpreter:

Interpreter is also a translator used to convert high-level programming language to low level programming language. Interpreter translates the code line by line and reports the error as soon as it is encountered during the translation process. An interpreter is faster than a compiler. Interpreters do not create executable files.

 iii)                Assembler:

                       Assembler is a translator used to translate assembly language to machine language. It is like a                               compiler for the assembly language but interactive like an interpreter.

Comments

Popular posts from this blog

Chapter # 3 Class IX

Components of Motherboard

Problem Solving Steps