State the differences and commonalities between compilers, interpreters and pseudo interpreters in tabular fashion.
Compiler |
Interpreter |
Pseudo interpreter |
The language processor that is used to convert source code (high level language) to object code (machine language) as a whole in one go. |
The language processor that is used to convert source code to object code line by line. |
The language processor that is used to convert assemble level code to object code. |
It takes large amount of time to analyse the entire source code |
It takes little amount of time to analyse the source code |
It takes the time somewhere between a compiler and an interpreter to analyse the source code |
The overall execution time is fast |
The overall execution time is slow |
The overall execution time is somewhere between a compiler and an interpreter |
It creates a intermediate code |
There is no intermediate code created |
There is no intermediate code created |
It generates the error message only after scanning the whole program |
It generates error as and when found |
It generates error as and when found |
debugging is comparatively hard as the error can be present anywhere in the program. |
Debugging is easier as we know where exactly the error is present |
Debugging is easier as we know where exactly the error is present |
Memory requirement is more |
Memory requirement is less |
Memory requirement is less |
Program need not be compiled every time |
Program needs to be converted from high level to machine level language every time |
Program needs to be converted from assembly level to machine level language every time |
Example: gcc, Microsoft Visual Studio etc |
Example: python, LISP, Ocamle etc |
Example: GNU Assembler, MASM etc |
Get Answers For Free
Most questions answered within 1 hours.