COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A program that translates assembly language into machine languageWhat is this Translator?
A
Assembler
B
Interpreter
C
Compiler
D
None of the above
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 to create an executable program.

Detailed explanation-2: -An assembler converts assembly language into machine language. A disassembler converts machine language into assembly.

Detailed explanation-3: -Assemblers are a third type of translator. The purpose of an assembler is to translate assembly language into object code. Whereas compilers and interpreters generate many machine code instructions for each high-level instruction, assemblers create one machine code instruction for each assembly instruction.

Detailed explanation-4: -An assembler translates a program written in assembly language into machine language and is effectively a compiler for the assembly language, but can also be used interactively like an interpreter. Assembly language is a low-level programming language.

There is 1 question to complete.