Forum for Week-1

Compiler vs Interpreter

Compiler vs Interpreter

by Md Robiul Alam Jidan -
Number of replies: 0

Compiler scans the entire program and translates the whole of it into machine code at once. A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster. Compiler scans the whole program in one go. The main advantage of compilers is their execution time. It converts the source code into object code. Eg. C, C++, C#, etc.

The interpreter translates just one statement of the program at a time into machine code.
An interpreter takes very little time to analyze the source code. However, the overall time to execute the process is much slower.
Translates program one statement at a time.
Considering it scans code one line at a time, errors are shown line by line.
It requires source code for later execution.
Python, Ruby, Perl, SNOBOL, MATLAB, etc.