Compiler vs Interpreter | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

Compiler vs Interpreter

COMPILER Compiler works on the complete program at once. It takes theĀ entire programĀ as input. Compiler executes conditional control statements (like if-else and switch-case) and logical constructsĀ faster than interpreter. Compiler generates intermediate code, called theĀ object code or machine code. INTERPRETER Interpreter program works line-by-line. It takesĀ one statement at a timeĀ as input Interpreter execute conditional control statements at a muchĀ slower speed. Interpreter does not generate mch

24th Apr 2017, 3:48 PM
Abdikasim Ali Mohamed
Abdikasim Ali Mohamed - avatar
1 Resposta
+ 11
If you are looking for speed, compiled programs are better, once they are compiled. Modifying a compiled program takes time too. But speed is not all you need. Interpreted codes are running on different OS, do not need to be installed, easy to read and modify... In a smartphone in JavaScript you can manipulate an HD video while you are playing it, with no frame lost. What for a better speed do you need?
24th Apr 2017, 7:05 PM
Emore Anzolin
Emore Anzolin - avatar