INTRODUCTION TO COMPILER DESIGN
TYPES OF COMPILERS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
used for HLL and LLL
|
|
Compilers and Interpreters are used for HLL instead the assembler is used for LLL
|
|
they are used only for LLL
|
|
None of the above
|
Detailed explanation-1: -The correct answer is Compiler. It is a program that translates a source program written in some high-level programming language into machine code for some computer architecture. In simple language, it converts high-level language into machine language.
Detailed explanation-2: -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-3: -A program that converts a high-level language source file into a machine-language file is called a compiler.