COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which type of translator is used to to create a machine code version of a HLL program prior to distribution to the public?
A
Compiler
B
Interpreter
C
Converter
D
Assembler
Explanation: 

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.

There is 1 question to complete.