Difference between compiler and interpreter.
Compiler | Interpreter |
---|---|
Compiler takes entire program as an input | Interpreter takes single instruction as an input |
Intermediate code is generated | No Intermediate code is generated |
The compilation is done before execution | Compilation and execution take place simultaneously |
speed is comparatively fast | speed is Slower |
Memory requirement is more | Memory requirement is less |
Error is displayed after entire program is checked | Error is displayed for every instruction interpreted |
Error detection difficult | Error detection easier |
Example: C, C++, C#, etc... | Example: PHP, PYTHON, PERL, etc... |
Follow Us