Operating Systems Concepts - Engineering

Q1:

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

A optimizing compiler

B one pass compiler

C cross compiler

D multipass compiler

E None of the above

ANS:C - cross compiler

A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is running.

A one-pass compiler is a compiler that passes through the source code of each compilation unit only once.

A multi-pass compiler is a type of compiler that processes the source code or abstract syntax tree of a program several times. A one-pass compilers is faster than multi-pass compilers.