Explain Linker and Loader

Answer Posted / mubeen riaz

1
down vote
Computers basicly work with binary numbers, people speak their native languages, so, programming languages are for communication between people and computers. If you say: Add 2 and 3 and then substract 1 from it, I doubt that computer would understand anything (maybe in some programming language it would). So, you need to translate your source code into a format that computer understands, so you need a compiler, which translates a programming language to co called object code. But object code is not yet the language a computer understands and executes directly. So it needs a linker which will make an executable file that containts instructions in so called machine language; a machine language is a set of operations coded into binary numbers which processor understands. All binary instructions have it's structure and it's published by a processor manufacturers. You can look for it on say Intel's site and see how do they look like. I can't give a satisfactory answer for loaders at the moment so please search Google as a beginning step.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

631


Why do we use main function?

646


What is the difference between Printf(..) and sprint(...) ?

792


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

640


How can I list all of the predefined identifiers?

585






Why pointers are used in c?

596


What is malloc() function?

642


How can I manipulate individual bits?

611


Can we compile a program without main() function?

637


Differentiate between Macro and ordinary definition.

736


What are the different types of pointers used in c language?

616


Is array a primitive data type in c?

584


How can I sort a linked list?

641


What is zero based addressing?

722


Differentiate between full, complete & perfect binary trees.

680