TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Compiler
|
|
Interpreter
|
|
Converter
|
|
Assembler
|
Detailed explanation-1: -Compilers are a type of translator that support digital devices, primarily computers. The name compiler is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language, object code, or machine code) to create an executable program.
Detailed explanation-2: -A compiler takes the source code as a whole and translates it into object code all in one go. Once converted, the object code can be run at any time. This process is called compilation . All of the object files used in a program must be combined before the program can be run.
Detailed explanation-3: -Compiler, interpreter, and assembler are different in that the compiler converts entire high-level language programs to machine language at once. In contrast, an interpreter converts high-level language to machine language line by line. The assembler translates assembly language programs to machine language.
Detailed explanation-4: -Compilers, interpreters, translate programs written in high-level languages into machine code that a computer understands. And assemblers translate programs written in low-level or assembly language into machine code.