MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A compiler for a high-level language that runs on one machine and produces code for a different machine is called
A
optimizing compiler
B
one pass compiler
C
cross compiler
D
multi pass compiler
Explanation: 

Detailed explanation-1: -What is the compiler called which runs on one machine and produces code for a different machine? Explanation: The compiler called which runs on one machine and produces code for the different machines is called a cross compiler.

Detailed explanation-2: -A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is running. For example, a compiler that runs on a PC but generates code that runs on an Android smartphone is a cross compiler.

Detailed explanation-3: -Compiler. A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The high-level program is referred to as ‘the source code. ‘ A typical computer program processes some type of input data to produce output data.

Detailed explanation-4: -A compiler which runs on one machine and and produces the target code for another machine. Such compiler is called a cross-compiler.

Detailed explanation-5: -A cross compiler is a compiler that may run on one machine and produce output target code for another machine. This process of generating a compiler for a new machine is called a cross compiler.

There is 1 question to complete.