Assembler Interpreter Compiler
It is a translator program that It converts source programs written A compiler is a translator program
converts assembly language or low- in High-Level Programming that converts source code written
level programming language to language into machine code line by in a high-level language like Java,
machine code. line, which means it executes one C++, etc. to equivalent machine
single line at a time into machine language in one go.
language.
It detects errors in the first phase, Detects error line by line. And stops Gives the full error report after the
after fixation the second phase scanning until the error in the whole scan.
starts. previous line is solved.
It takes more time than the An interpreter takes more It takes less execution time
compiler. execution time than the compiler. comparing to an interpreter.
Example:-GAS, GNU Example:-Python, Perl, VB, Example:-C, C#, Java, C++
PostScript, LISP, etc…