Discussion
A compiler that supports separate compilation must record in each object file
Answer: C
Correct answer: the symbols it defines and the symbols it leaves unresolved
Separate compilation means the linker must later match one module's references against another's definitions, so each object file carries two lists: the symbols it exports and the external symbols it needs.
Local variable names are not needed for linking, and appear only if debugging information is requested. The optimisations applied and the source text are irrelevant to resolution - the linker works entirely from the symbol tables and the relocation entries.
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