If you have executed a program, then you must have heard this names. But many of us, not really sure what is the exact differences between them. Let’s drill them down.
Compiler VS Interpreter
|Compilation is translating the complete program into a format that computer understands.||Interpretation is translation of code line by line.|
|Generates machine level code for the entire program.||Machine level code is generated only for one line.|
|Errors are thrown for the entire program, if any. The errors are displayed after compiling entire program.||If any error found in the current line, then only it will shown. Any error in other lines will be not be impacted.|
|Resultant machine level code is saved in to file.||Nothing will be saved in a file.|
|Requires more memory as the machine level byte code must be saved in a file.||Requires lesser memory as no contents are saved in any file.|
If you like this post, please support us by liking or sharing or commenting on your favorite social networking site.