Difference between compiler and an interpreter

broken image
broken image
broken image

Theoretically what I wrote above is right – any program can be compiled/interpreted. Though I said programs written in any programming language can be either compiled or interpreted, it is not the case always. So the difference is not with programming languages, it is with the way programs written in different languages are implemented.Īny one serious about programming should understand the working of compilers,interpreters and the differences between them.So here I am trying to outline generic differences between compiling and interpreting (compilers vs interpreters). The only requirement is, we need a C or Java compiler to compile a C/Java program and similarly we need an C/Java Interpreter to interpret a program written in C/Java. Same is the case with Java or any other programming languages. A program written in C language can either be compiled or can be interpreted. Compiling or interpreting -both are 2 different ways of implementing the same program written using a programming language. Even experienced programmers tend to get confused here! But the fact is, programming languages are neither “compiled” nor “interpreted” types. It is a general notion that people try to classify programming languages as either “compiled” language or “interpreted” language.

broken image