Discussion
Debugging information emitted by a compiler serves to
Answer: D
Correct answer: map machine addresses back to source lines and variable names
The debugger must display source lines and variable values while executing machine code, which requires a mapping between the two - addresses to lines, and variable names to stack offsets or registers.
The compiler emits that mapping alongside the code. Optimisation complicates it badly, since code is reordered and variables removed, which is why debug builds usually disable it. The information is a translation aid, not a constraint on the optimiser and nothing to do with 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