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 machine
The question was posed to me in a national level competition.
My doubt stems from Cross Compiler topic in chapter Compiler Introduction of Compiler