Difference between compiler and interpreter and assembler in tabular form
Answers
Answered by
13
compiler have the capacity to scan whole program and also translate into machine as whole. it is also have capacity to generate object code( intermediate object code. it is used inn program languages for example in C++ etc.
Interpreter can only translates the program only a statement at a time.In this there is no intermediate object code generation occur.It is used in languages like python.
While Assembler convert the instruction coming from computer in the form of bits in such a way that the computer can understand.
Interpreter can only translates the program only a statement at a time.In this there is no intermediate object code generation occur.It is used in languages like python.
While Assembler convert the instruction coming from computer in the form of bits in such a way that the computer can understand.
Answered by
17
Compiler :
⇒Compiler is a translator which translates high level Languages like C, C++ to Machine code .
⇒Compiler Scans the entire program at once and then converts into Machine code.
⇒Execution of programs are faster in Compilers.⇒Compilers translates error report after translation of entire code.
Examples :gcc compiler which stands for GNU compiler collections,Visual Studio.Intel C++
Interpreter :
⇒Interpreter is a translator programs which translates high level program into machine level line by line.
⇒Interpreter first Converts high level language into an intermediate code and then executes it line by line.
⇒Translation is a bit slower than compiler.
⇒In interpreter, an error will be notified but no further code is scanned.
Example :Python
Java uses both compiler and Interpreter.
Assembler :Assembler are used to convert assembly language code into machine code.Examples :
ACME, AS65 etc
⇒Compiler is a translator which translates high level Languages like C, C++ to Machine code .
⇒Compiler Scans the entire program at once and then converts into Machine code.
⇒Execution of programs are faster in Compilers.⇒Compilers translates error report after translation of entire code.
Examples :gcc compiler which stands for GNU compiler collections,Visual Studio.Intel C++
Interpreter :
⇒Interpreter is a translator programs which translates high level program into machine level line by line.
⇒Interpreter first Converts high level language into an intermediate code and then executes it line by line.
⇒Translation is a bit slower than compiler.
⇒In interpreter, an error will be notified but no further code is scanned.
Example :Python
Java uses both compiler and Interpreter.
Assembler :Assembler are used to convert assembly language code into machine code.Examples :
ACME, AS65 etc
Similar questions