Which of the following statements are TRUE about intermediate code generation in a compiler?
(A) Intermediate code is platform-independent.
(B) Intermediate code can be optimized before being translated into machine code.
(C) Intermediate code is generated only for high-level programming languages.
(D) The purpose of intermediate code is to simplify the process of code generation for different target architectures.
Choose the correct answer from the options given below:
1
(A), (B), (D) Only
2
(A), (C), (D) Only
3
(B), (C), (D) Only
4
(A), (B), (C) Only