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.
In the quest for glowing skin, luscious hair, and strong nails, the combination of marine…
In the world of wellness and beauty, marine collagen has emerged as a potent supplement…
Creatine has long been a staple in the world of fitness and bodybuilding. Known for…
Collagen supplements have gained immense popularity, both online and offline, becoming a staple in many…
As the New Year approaches, many people resolve to get fit, but as time goes…
Luxury fragrances are appreciated for their natural notes derived from flowers, spices, and other natural…