Skip to content

Compiler Design

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.

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

More Compiler Design MCQs