What is the function or purpose of Cross-compiler?
Difficulty: Hard
About this MCQ
This Hard Compiler Design MCQ checks one syllabus fact.
The question is: “What is the function or purpose of Cross-compiler?”
The accepted answer is D. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs.. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs is the fact required by What is the function or purpose of Cross-compiler option D Option A A technique that compiles code into machine instructions at runtime rather than before execution does not match the stem it is a near-miss used to catch incomplete recall of A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs Option B The use of regular expressions by a lexical analyzer to define and recognize valid tokens does not match the stem it is a near-miss used to catch incomplete recall of A compiler.
- A. A technique that compiles code into machine instructions at runtime rather than before execution.
Why not A: “A technique that compiles code into machine instructions at runtime rather than before execution.” is not correct. The accepted answer is D. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs.. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs is the fact required by What is the function or purpose of Cross-
- B. The use of regular expressions by a lexical analyzer to define and recognize valid tokens.
Why not B: “The use of regular expressions by a lexical analyzer to define and recognize valid tokens.” is not correct. The accepted answer is D. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs.. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs is the fact required by What is the function or purpose of Cross-
- C. A property of a formal grammar where a single string can be produced by more than one distinct parse tree.
Why not C: “A property of a formal grammar where a single string can be produced by more than one distinct parse tree.” is not correct. The accepted answer is D. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs.. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs is the fact required by What is the function or purpose of Cross-
- D. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs. ✓
Correct answer
D. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs.
Explanation
A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs is the fact required by What is the function or purpose of Cross-compiler option D Option A A technique that compiles code into machine instructions at runtime rather than before execution does not match the stem it is a near-miss used to catch incomplete recall of A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs Option B The use of regular expressions by a lexical analyzer to define and recognize valid tokens does not match the stem it is a near-miss used to catch incomplete recall of A compiler.
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- Choose the correct description of Peephole optimization.
- Identify the correct definition of Bytecode.
- A code optimization technique that examines a small set of adjacent instructions to replace them with a more e...
- What term describes the following? a compiler process that verifies whether operations in a program are perfor...
- Just-in-time (JIT) compilation is best defined as which of the following?
- In computer science, Type checking refers to which of the following?