COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

KEY COMPONENTS OF A COMPILER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Type checking is normally done during?
A
Lexical Analysis
B
Syntax Analysis
C
Syntax Directed Translation
D
Code generation
Explanation: 

Detailed explanation-1: -Type checking is done during all the phases especially in syntax analysis phase.

Detailed explanation-2: -Explanation: Type checking performs at semantic analysis phase, and parsing performs at the syntax analysis phase. Since Syntax analysis phase comes before semantic analysis, therefore Type Checking is always done after parsing.

There is 1 question to complete.