COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following are true about the front end of the compiler?
|
Independent of source language
|
|
Dependent on source language
|
|
Independent of machine language
|
|
Dependent on machine language
|
Explanation:
Detailed explanation-1: -The correct answer is option 3. Concept: In compiler design, every phase takes inputs from its previous stage and feeds its output to the next phase of the compiler.
Detailed explanation-2: -Front-end constitutes the Lexical analyzer, semantic analyzer, syntax analyzer, and intermediate code generator.
Detailed explanation-3: -Aspects of the front end include lexical analysis, syntax analysis, and semantic analysis.
Detailed explanation-4: -Machine languages are so closely related to the structure of a particular computer that they are said to be machine dependent. Programs written in machine language are not portable, that is, they may not be run on other computers with different machine languages.
There is 1 question to complete.