COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Assembler
|
|
Compiler
|
|
Interpreter
|
|
LInker
|
Detailed explanation-1: -A program that converts a high-level language source file into a machine-language file is called a compiler.
Detailed explanation-2: -High-level compilers do not convert source code into assembly language. Rather, they convert it into object code/machine code directly. Assembly language is a human-readable version of object/machine code, designed for a programmer.
Detailed explanation-3: -A high-level language requires an interpreter/ compiler for the process of conversion. We perform the conversion of an assembly language into a machine language. We perform the conversion of a high-level language into an assembly language and then into a machine-level language for the computer.
Detailed explanation-4: -Compilers convert high-level language code to machine (object) code in one session. Compilers can take a while, because they have to translate high-level code to lower-level machine language all at once and then save the executable object code to memory.
Detailed explanation-5: -2) Which computer program accepts the high-level language and converts it into assembly language? Explanation: Compiler is a computer program that accepts the code written in a high-level language and converts that code into the assembly language.