COMPILER: It is a program which translates a high level language program into a machine language program. A compiler is more intelligent than an assembler. It checks all kinds of limits, ranges, errors etc. But its program run time is more and occupies a larger part of the memory. It has slow speed. Because a compiler goes through the entire program and then translates the entire program into machine codes. If a compiler runs on a computer and produces the machine codes for the same computer then it is known as a self-compiler or resident compiler. On the other hand, if a compiler runs on a computer and produces the machine codes for other computer then it is known as a cross compiler.
Advantages:
Disadvantages:
Example: GCC, Microsoft Visual Studio
INTERPRETER: An interpreter is a program which translates statements of a program into machine code. It translates only one statement of the program at a time. It reads only one statement of program, translates it and executes it. Then it reads the next statement of the program again translates it and executes it. In this way it proceeds further till all the statements are translated and executed.
Advantages:
Disadvantages:
Example: Python, LISP, Ocamle
ASSEMBLER: A computer will not understand any program written in a language, other than its machine language. The programs written in other languages must be translated into the machine language. Such translation is performed with the help of software. A program which translates an assembly language program into a machine language program is called an assembler. If an assembler which runs on a computer and produces the machine codes for the same computer then it is called self-assembler or resident assembler. If an assembler that runs on a computer and produces the machine codes for other computer then it is called Cross Assembler.
Advantages:
Disadvantages:
Example: MASM, NASM.
Hola! If you haven't heard this quote yet, take a moment to read it here.…
"Think good an good follows. Think evil and evil follows. Think creative and creativity will…
Better late than never! Apologies for the delay in responding, but I'm here now to…
By providing accurate information, context, promoting critical thinking, raising awareness, connecting global and local issues,…
Current affairs coverage often showcases stories of individuals and communities making a positive impact. Q1.…
Current affairs coverage helps individuals understand the interconnectedness of global and local events. It shows…