Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Relocating bits used by relocating loader are... Start Learning for Free
Relocating bits used by relocating loader are specified by
  • a)
    Relocating loader itself
  • b)
    Linker
  • c)
    Assembler
  • d)
    Macro Processor
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Relocating bits used by relocating loader are specified bya)Relocating...
Takes an object files and combines them into a single executable file, library file, or another object file.
View all questions of this test
Most Upvoted Answer
Relocating bits used by relocating loader are specified bya)Relocating...
Relocating bits used by relocating loaders are specified by the linker.

Explanation:
A relocating loader is a program that loads an object program into memory for execution. It is responsible for allocating memory, resolving external references, and performing relocations. Relocations involve adjusting the memory addresses in the object program to match the actual memory locations where the program will be loaded.

When a program is compiled, it may contain references to external symbols, such as functions or variables, that are defined in other modules or libraries. These references are usually represented as symbolic addresses or offsets. However, these addresses are not fixed because the program can be loaded at different memory locations each time it is executed.

To resolve these external references and perform relocations, the relocating loader uses information provided by the linker. The linker is a program that combines multiple object files and libraries into a single executable file. It resolves symbols, calculates addresses, and generates relocation information.

The relocation information specifies the locations in the object program where adjustments need to be made. It contains the addresses or offsets that need to be modified to reflect the actual memory locations. The relocating loader uses this information to update the object program before loading it into memory.

Therefore, it is the linker's responsibility to specify the relocating bits used by the relocating loader. The linker analyzes the object files, resolves symbols, and generates relocation entries based on the memory layout and the addresses of external symbols. These relocation entries are then used by the relocating loader to perform the necessary adjustments during the loading process.

In conclusion, the linker is responsible for specifying the relocating bits used by the relocating loader. It generates relocation information based on the object files and libraries being linked, which is then used by the relocating loader to perform relocations and ensure correct execution of the program.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer?
Question Description
Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer?.
Solutions for Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Relocating bits used by relocating loader are specified bya)Relocating loader itselfb)Linkerc)Assemblerd)Macro ProcessorCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev