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

Explain what happens if you free a pointer twice?

614


Can we replace the struct function in tree syntax with a union?

782


What is identifiers in c with examples?

678


Does c have function or method?

592


Why is not a pointer null after calling free?

599






What is s or c?

598


What does p mean in physics?

586


What are lookup tables in c?

551


Why does notstrcat(string, "!");Work?

643


How can you increase the size of a statically allocated array?

619


What is wild pointer in c with example?

578


What is bubble sort technique in c?

592


How many main () function we can have in a project?

615


How the c program is executed?

632


Explain is it better to bitshift a value than to multiply by 2?

719