Multiple choice

Cross compiler generates code for which of the following targets?

  1. The target machine on which it is being executed.

  2. The target machine other than the machine on which it is being executed.

  3. By default, the target is server machine of the node on which it is being executed.

  4. Cross compiler does not generate machine code.

  5. Both 2 and 3

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Cross compiler generates code for some other target machine defined by user. It can be some other processor or microcontrller or micro processors etc.