what is the role of linker and loader in compiler?
answer correctly!!!
Answers
Answer:
The main function of Linker is to generate executable files. Whereas main objective of Loader is to executable files to main memory. The linker takes input of object code generated by compiler/assembler. ... Loading can be defined as process of loading executable codes to main memory for further execution.
Explanation:
Answer:
Linker is a program in a system which helps to link a object modules of program into a single object file. It performs the process of linking. Linking is performed at both compile time, when the source code is translated into machine code and load time, when the program is loaded into memory by the loader. Loader is a part of operating system and is responsible for loading executable files into memory and execute them. It calculates the size of a program (instructions and data) and creates memory space for it. It initializes various registers to initiate execution.
Explanation:
Hope it helps you
Plz follow me