+ 4

What are the differences between an interpreter and a compiler, in general?

This is a very common question that you can get from the beginners. Here, I am posting my answer and if I miss anything, then do answer.

29th Mar 2017, 3:07 AM
Tamoghna Saha
3 ответов
+ 7
Interpreter: Ir Compiler: Cr 1. Ir translates single instruction as input at a time but Cr translates the entire program at one go. 2. In Ir, no intermediate object code is generated, hence are memory efficient but Cr generates it which further requires linking, hence takes more memory. 3. In Ir, errors are displayed for every instructions interpreted (if any) and hence debugging is easy, but in Cr, errors are displayed after the entire program is scanned. These are the main difference that I think will be sufficient to answer the question. If I have missed anything, then do let me know. 😃
29th Mar 2017, 3:21 AM
Tamoghna Saha
+ 3
sir how to identify or decide any programing language is compile or interpreted.. for example from java and python which is interpreted language
29th Mar 2017, 3:36 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 2
@mayur As far as I have learnt, any programming language can be interpreted or compiled. so interpretation and compilation are the technique of implementation, nothing else. PS: please don't call me sir. I am a student 😅😅
29th Mar 2017, 3:55 AM
Tamoghna Saha