in Compiler Design edited by
746 views
0 votes
0 votes

A compiler for a high level language that runs on one machine and produces code for a different machine is called :

  1. Optimizing
  2. One pass compiler
  3. Cross compiler
  4. Multipass compiler
in Compiler Design edited by
746 views

1 Answer

1 vote
1 vote
Best answer

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 Windows 7 PC but generates code that runs on Android smartphone is a cross compiler.

So C is correct.

Ref: https://en.wikipedia.org/wiki/Cross_compiler

selected by
Answer: