COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Executable code
|
|
Machine code
|
|
Binary code
|
|
Both B and C
|
Detailed explanation-1: -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++.
Detailed explanation-2: -Compiler, Computer software that translates source code written in a high-level language into a set of machine-language instructions that can be understood by a digital computer’s CPU. It scans the entire program and translates the whole of it into machine code at once.
Detailed explanation-3: -Compiler-It is a software program that converts a program written in High-level language to a low-level language(object/ target language). It also reports errors present in source programs. Types of compilers: Single-pass compilers: It is a type of compiler that processes the source code only once.
Detailed explanation-4: -3) Does the compiler program translate the whole source code in one step? Explanation: The compiler is that program which translates the whole high-level code into the machine code at once.