1.

A linker is given object module for a set of programs that were compiled separately. What is not true about an object module?(a) Object code(b) Relocation bits(c) Names and locations of all external symbols denied in the object module(d) Absolute addresses of internal symbolsThe question was posed to me during an interview for a job.The above asked question is from Syntax-Directed Definitions and Translations in chapter Syntax Directed Definition and Translations of Compiler

Answer»

Right choice is (d) ABSOLUTE addresses of internal symbols

Easy explanation: A linker or link editor is a computer program that takes ONE or more object FILES generated by a compiler and combines them into a single executable file, LIBRARY file, or ANOTHER object file.



Discussion

No Comment Found

Related InterviewSolutions