Compiler in C
A compiler is system software which converts programming language code into binary format in single steps. In other words Compiler is a system software which can take input from other any programming language and convert it into lower level machine dependent language.
Interpreter
It is system software which is used to convert programming language code into binary format in step by step process.
Assembler
An assembler is system software which is used to convert the assembly language instruction into binary format in step by step process. An assembler is system software which is used to convert the assembly language instruction into binary format.
Compiler Vs Interpreter
No | Compiler | Interpreter |
---|---|---|
1 | Compiler takes Entire program as input at a time. | Interpreter takes Single instruction as input at a time. |
2 | Intermediate Object code is generated | No Intermediate Object code is generated |
3 | It execute conditional control statements fastly. | It execute conditional control statements slower than Compiler |
4 | More memory is required. | Less memory is required. |
5 | Program need not to be compiled every time | Every time higher level program is converted into lower level program |
6 | It display error after entire program is checked | It display error after each instruction interpreted (if any) |
7 | Example: C | Example: BASIC |