1.

Cross-compiler is a compiler __________(a) Which is written in a different language from the source language?(b) That generates object code for the machine it’s running on.(c) Which is written in the same language as the source language?(d) That runs on one machine but produces object code for another machineThe question was posed to me in a national level competition.My doubt stems from Cross Compiler topic in chapter Compiler Introduction of Compiler

Answer»

The correct choice is (a) Which is WRITTEN in a DIFFERENT language from the source language?

For explanation: A COMPILER for a high-level language that runs on ONE machine and PRODUCES code for a different machine is called a cross compiler.



Discussion

No Comment Found

Related InterviewSolutions