Difficulty: Easy
Correct Answer: cross compiler
Explanation:
Introduction / Context:
Toolchains often build software for platforms other than the one on which the compiler itself runs—common in embedded systems, mobile development, and operating system ports. Recognizing the term for this capability is fundamental in systems programming.
Given Data / Assumptions:
Concept / Approach:
A cross compiler produces target code for an architecture different from the host. It differs from an optimizing compiler (which focuses on performance transformations), a one pass or multipass compiler (which describe compilation strategy), and native compilers (host and target are the same).
Step-by-Step Solution:
Verification / Alternative check:
Widely used toolchains (e.g., GCC, Clang) provide triplets like x86_64-linux-gnu (native) and aarch64-none-elf (cross), reinforcing the terminology.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing cross assemblers or linkers with compilers; all can be cross tools, but the question specifically asks about the compiler.
Final Answer:
cross compiler
Discussion & Comments