Machine-translated by Google. Questions are authored in English.
Top

Discussion

A cross compiler is one that

  • A.produces code that will run on every processor without change
  • B.runs on one machine and produces code for a different machine
  • C.translates between two different high level source languages
  • D.compiles a program written in more than one language at once

Answer: B

Correct answer: runs on one machine and produces code for a different machine

A cross compiler executes on a host machine and emits code for a different target. It is the normal arrangement for embedded work, where the target may have no operating system, little memory and no development tools at all.

It is also how a new architecture is bootstrapped: the first compiler for it must run somewhere else. Nothing about it produces universal code, translates between source languages, or handles multiple languages at once.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.