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. multipass compiler E. None of the above

optimizing compiler
one pass compiler
cross compiler
multipass compiler E. None of the above

The correct answer is C. cross compiler.

A cross compiler is a compiler that is used to compile code for a platform other than the one on which the compiler is running. This is useful for developing software for embedded systems or other platforms that do not have a native compiler.

An optimizing compiler is a compiler that attempts to improve the performance of the compiled code by performing optimizations such as inlining functions and eliminating dead code.

A one-pass compiler is a compiler that reads the entire source code file once and then produces the compiled code. This is in contrast to a multi-pass compiler, which reads the source code file multiple times.

A multi-pass compiler is a compiler that reads the source code file multiple times and produces the compiled code in multiple passes. This is done in order to perform certain optimizations that cannot be done in a single pass.

E is not the correct answer because it is not a type of compiler.