Computer Science, asked by kaziapedth8, 1 year ago

Differentiate between compilor and interpreter

Answers

Answered by anmol88989
0
In contrast with a compiler, an interpreter is a program which imitates the execution of programs written in a source language. Another difference between Compiler and interpreter is that Compiler converts the whole program in one go on the other handInterpreter converts the program by taking a single line at a time.


It may help u. PLZ like and follow
Answered by divyamunot1999
2

Interpreter

  • It is a program that reads line-by-line a program written in a language; in source language and translate it to an intermediate code, to execute it.
  • An interpreter translates the program when you read it, converting the program code directly into actions.
  • The advantage of the interpreter is that given any program can be interpreted in any platform (operating system).
  • The execution is slower, since for each line of the program it is necessary to make the translation.

Compiler

  • It is a program that fully reads a program written in a language; the source language, and translates it into a program equivalent to another language, object language.
  • A program that has been compiled can run on its own, because in the compilation process it is transformed into another language (machine language).
  • The file generated by the compiler only works on the platform where it was created.
  • Speaking of the speed of execution a compiled file is 10 to 20 times faster than an interpreted file.

divyamunot1999: plz vote if its helpful
Similar questions