INTRODUCTION TO COMPILER DESIGN
TYPES OF COMPILERS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
An instruction set
|
|
Assemblers
|
|
Interpreters
|
|
Compilers
|
Detailed explanation-1: -A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The compiler is used to translate source code into machine code or compiled code.
Detailed explanation-2: -A compiler translates the entire program written in a high-level language to machine language prior to execution. An interpreter translates a program line by line during execution.
Detailed explanation-3: -The correct answer is Compiler. A compiler takes the program code (source code) and converts the source code to a machine language module (called an object file).
Detailed explanation-4: -A compiler is a special program that translates a programming languageās source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.