Discussion
Match each scope of optimisation with the region it considers.
List I
A. local
B. global
C. interprocedural
D. peephole
List II
1. several procedures together
2. one basic block
3. a short window of adjacent instructions
4. one whole procedure
Answer: C
Correct answer: A-2, B-4, C-1, D-3
Four scopes in increasing order of reach and cost. Peephole works over a short window of adjacent instructions; local optimisation over one basic block; global optimisation over a whole procedure, which is where data flow analysis becomes necessary; and interprocedural optimisation across several procedures at once.
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