paint-brush
Difference Between Compiler And Interpreter by@MalwarGeek
600 reads
600 reads

Difference Between Compiler And Interpreter

by MalwaregeekApril 18th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The only reason why I've written this post is because I've seen many people get confused with compiler languages and interpreter languages. Compiler: Entire program(all lines) is scanned first and then gets translated into machine-code. Debugging of programs is quite slow in compilers. Debugging is very fast in case of interpreters. It gives error messages regarding to the first error that come across and stops translating remaining lines. It takes more time for program execution. It's very fast.

Company Mentioned

Mention Thumbnail
featured image - Difference Between Compiler And Interpreter
Malwaregeek HackerNoon profile picture

The only reason why I've written this post because I've seen many people get confused with compiler languages and interpreter languages. Hope this helps for basic understanding.

Compiler:

  • Entire program(all lines) is scanned first and then gets translated into machine-code.
  • Debugging of programs is quite slow in compilers.
  • Gives error messages regarding all errors present in the program all at a time.
  • Takes less time for program execution.

Interpreter:

  • The program is translated line by line.
  • Debugging is very fast in case of interpreters.
  • Gives error messages regarding to the first error that come across and stops translating remaining lines.
  • Takes more time for program execution.