One of the purposes of using intermediate code in compilers is to
(A) make parsing and semantic analysis simpler.
(B) improve error recovery and error reporting.
(C) increase the chances of reusing the machine-independent code optimizer in other compilers.
(D) improve the register allocation.
Answer: (C)
Explanation: After semantic Analysis, the code is converted into intermediate code which is platform(OS + hardware) independent, the advantage of converting into intermediate code is to improve the performance of code generation and to increase the chances of reusing the machine-independent code optimizer in other compilers.
So, option (C) is correct.
Quiz of this Question
Recommended Posts:
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 42
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 61
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 62
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 63
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 64
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 65
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 60
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 59
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 43
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 44
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 45
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 46
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 50
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 51
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 52
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 53
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 54
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 55
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 56
- GATE | Sudo GATE 2020 Mock I (27 December 2019) | Question 57
Improved By : gfg_user

