Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
190 views
in General by (98.6k points)
closed by
Some code optimizations are carried out on the intermediate code because:
1. they enhance the portability of the compiler to other target processors
2. program analysis is more accurate on intermediate code than on machine code
3. the information from data flow analysis cannot otherwise be used for optimization
4. the information from the front end cannot otherwise be used for optimization

1 Answer

0 votes
by (95.6k points)
selected by
 
Best answer
Correct Answer - Option 1 : they enhance the portability of the compiler to other target processors
  • The main purpose of doing some code-optimization on intermediate code generation is to enhance the portability of the compiler to target processors

​Important points:

Program analysis is more accurate on intermediate code than on machine code. It is also correct but the most optimal answer is 1.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...