#)Linker is a program that takes one or more objects generated by a compiler and combines them into a single executable program.
#)Loader is the part of an operating system that is responsible for loading programs from executables (i.e., executable files) into memory, preparing them for execution and then executing them.
Chat with our AI personalities
* linker which linkes the files whereas lodar which loads the file after linking * linkers takes independently translated programs as input whose original source language representations includes symbolic refrences to each other whereas loaders accept object program, prepare these programs for execution by computer and initiate the execution
LINKERS:-
Linkers are the system softwares that are used to link the functions,resources to their respective references.
EX-
source code(.c) is compiled and converted into object code(.obj) in C.
After this Linker comes into the act, linker resolve all the references in .obj file via linking them to their respectives codes and resources.In short linker performs the final step to convert .obj into executable or machine readable file(.exe).
eg:
#include<stdio.h>
int main()
{
printf("ashwin");
return 0;
}
here,compiler first searches the declaration for "printf()" function,finds it in "#include<stdio.h>" and creates a (.obj) file successfully.
A symbol table is created in (.obj) file which contains all the references to be resolved,linkers resolves them by providing respective code or resource,
here code referred by "printf" also gets executed after successful creation of( .exe) file by linker.
LOADERS:
Loaders are the programs that are used to load the resources like files from secondary or main memory,i.e.
SUMMARY:
Loader loads the referred resource or file after being Linked to referrer via a Linker during the execution of program.
HAAHAHAHAHHAHAHAH I HAVE FOOD AND YOU Don't HAHHAHAHAHAHAHA HAHAHAHAHHAAHHAAHAHAHHAAHHAHA
A compiler converts high-level code into object files, a linker links together these object files into a single executable
The Loader is a program that moves the executable file produced by linker from the secondary storage device to memory for execution
There is no such thing in the C language, but it is true that operating systems have a component called loader which loads binary program-files (whose source may be written in C language) into the memory and prepares them to the execution.
Difference between Front End Loader and Wheel Loader
In computer science, a linker or link editor is a program that takes one or more objects generated by a compiler and combines them into a single executable program.http://en.wikipedia.org/wiki/LinkerThis is a response to the question, "What is object linker?". The appropriate question would have been, "What is a linker or link editor in the field of Computer Science and Software Engineering?". Note that a linker is called a loader when it refers to a run-time process. Linkers refer to compile-time processes.
Compiler - Translates High level language (C, C++ etc.) and generates Object code (machine readable but not directly executable)Interpreter - Same as compiler but do that interactively (simply saying line by line). Interpreted languages don't usually require a linker, and employ a loading process different from that of a compiled program: the interpreter itself is linked and loaded like a compiled program (and in all probability is a compiled program), but the program interpreted by the interpreter is typically loaded through interpreter-specific means.Linker - Connects the compiler generated object code with library code to generated independent executable (like in C, you dont write how printf() works, linker add the code for printf() function in your program)Loader - Load the machine readable codes in memory to be executed. This step typically includes relocating the code output by the linker to a specific memory location into which the program was being loaded.