Discussion
The getreg function of a simple code generator
Answer: B
Correct answer: chooses a register for a result, spilling one if necessary
When every register is occupied, getreg must decide which value to evict - preferring one already in memory, or one with no next use in the block - and emit a store if the value would otherwise be lost. That decision is the heart of a simple code generator’s register management.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development