1 votes 1 votes Consider the following two sets:Set $\text{X}$Set $\text{Y}$P. Lexical Analyzer1. Abstract Syntax TreeQ. Syntax Analyzer2. TokenR. Intermediate Code Generator3. Parse TreeS. Code Optimizer4. Constant FoldingWhich one of the following options is the CORRECT match from Set $\boldsymbol{X}$ to Set $\boldsymbol{Y}$?$\mathrm{P}-4 ; \mathrm{Q}-1 ; \mathrm{R}-3 ; \mathrm{S}-2$$\mathrm{P}-2 ; \mathrm{Q}-3 ; \mathrm{R}-1 ; \mathrm{S}-4$$\mathrm{P}-2 ; \mathrm{Q}-1 ; \mathrm{R}-3 ; \mathrm{S}-4$$\mathrm{P}-4 ; \mathrm{Q}-3 ; \mathrm{R}-2 ; \mathrm{S}-1$ Compiler Design gatecse2024-set2 compiler-design compilation-phases match-the-following + – Arjun asked Feb 16 • edited Mar 6 by Counsellor Arjun 2.6k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Lexical analysis $\rightarrow$ tokensSyntax analysis $\rightarrow$ parse treeICG $\rightarrow$ abstract syntax treecode optimization $\rightarrow$ constant folding (it is one of the code optimization methods)Option $(B)$ is correct. Hira Thakur answered Feb 16 Hira Thakur comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Option B is correct Ambike jaiswal answered Feb 18 Ambike jaiswal comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Lexical analyzer output = stream of tokens Syntax analyzer takes stream of tokens as input and produce parse tree ICG output is abstract syntax tree Code optimizer - constant folding. nishil032 answered Apr 18 nishil032 comment Share Follow See all 0 reply Please log in or register to add a comment.