What is the difference between interpreter and compiler ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the difference between interpreter and compiler ?

29th Aug 2018, 1:42 PM
Ahmed Heaba
Ahmed Heaba - avatar
3 Answers
+ 4
Compiler compiles your code before executing and is faster than interpreter.
29th Aug 2018, 2:04 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
generaly compilers turn your code into an executable file, like with c/c++/c#/java(in a way) and other languages, which you can then launch. Interpreter executes your code as it is by itself. Interpreted languages include python, html, js, css
29th Aug 2018, 2:35 PM
Data
Data - avatar
+ 1
Compiler will go through your whole code before compiling --> it won't compile if there's an error. (example: C#) Interpreter will read your code line by line, errors can be included and won't stop it from running. (example: php)
29th Aug 2018, 1:53 PM
Sam Pache
Sam Pache - avatar