Books Related to Java Technology

Sunday, September 18, 2011

What is the difference between linker and assembler?

What is the difference between linker and assembler?

Answer1: Here's how it works(Assembler):Most computers come with a specified set of very basic instructions that correspond to the basic machine operations that the computer can perform. For example, a "Load" instruction causes the processor to move a string of bits from a location in the processor's memory to a special holding place called a register. Assuming the processor has at least eight registers, each numbered, the following instruction would move the value (string of bits of a certain length) at memory location 3000 into the holding place called register
Posted On: 2011-09-13 By: Sandeep K Suman

Answer2: An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer's processor can use to perform its basic operations. Some people call these instructions assembler language and others use the term assembly language.
Posted On: 2011-09-13 By: Sandeep K Suman

Answer3: A linker is a program that combines object modules to form an executable program. Many programming languages allow you to write different pieces of code, called modules, separately. This simplifies the programming task because you can break a large program into small, more manageable pieces. Eventually, though, you need to put all the modules together. This is the job of the linker. In addition to combining modules, a linker also replaces symbolic addresses with real addresses. Therefore, you may need to link a program even if it contains only one module.
Posted On: 2011-09-13 By: Sandeep K Suman

Answer4: A program that combines one or more files containing object code into a single file containing executable code. The linker resolves external references among the files, such as function calls. The output of a linker is a machine-code program ready to be loaded into memory and executed.
Posted On: 2011-09-13 By: Sandeep K Suman

Answer5: 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.
Posted On: 2011-09-13 By: Sandeep K Suman

No comments:

Post a Comment