One of the purposes of using intermediate code in compilers is to :

This question was previously asked in
UGC NET Computer Science (Paper 2) 07 Dec 2023 Official Paper
View all UGC NET Papers >
  1. make parsing and semantic analysis simpler 
  2. improve error recovery and error reporting 
  3. increase the chances of reusing the machine independent code optimizer in other compilers 
  4. improve the register allocation 

Answer (Detailed Solution Below)

Option 3 : increase the chances of reusing the machine independent code optimizer in other compilers 
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
8.7 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is increase the chances of reusing the machine independent code optimizer in other compilers 

Key Points

  • The intermediate code is a lower level representation of the source code that can be used to bring some level of platform independence to the compilation process.
  • By defining an intermediate representation, we can design the first part of the compiler (called the front end), which translates high-level source code into intermediate code, to work with multiple languages.
  • The second part of the compiler (called the back end), which translates intermediate code into machine-specific code, can be made to work with multiple target architectures.
  • Therefore, the intermediate code can increase the chances of reusing the machine-independent code optimizer in other compilers, making the process more efficient.
Latest UGC NET Updates

Last updated on Jun 6, 2025

-> The UGC NET Exam Schedule 2025 for June has been released on its official website.

-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.

-> The UGC NET 2025 online application form submission closed on 12th May 2025.

-> The June 2025 Exam will be conducted from 21st June to 30th June 2025

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

Get Free Access Now
Hot Links: teen patti master list online teen patti teen patti gold real cash