Preview

Linkers and Loaders

Good Essays
Open Document
Open Document
739 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Linkers and Loaders
SYNOPSIS

FOR

TERM PAPER

ON

LINKERS AND LOADERS

Submitted to: Submitted by:
Asst.Lect. Darvinder Kaur Pratik Raj

Sec:K1R13

Roll no.:A10

Introduction

Linker

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.

[pic]

Computer programs typically comprise several parts or modules; all these parts/modules need not be contained within a single object file, and in such case refer to each other by means of symbols. Typically, an object file can contain three kinds of symbols:

• defined symbols, which allow it to be called by other modules,

• undefined symbols, which call the other modules where these symbols are defined, and

• local symbols, used internally within the object file to facilitate relocation.

For most compilers, each object file is the result of compiling one input source code file. When a program comprises multiple object files, the linker combines these files into a unified executable program, resolving the symbols as it goes along.

Linkers can take objects from a collection called a library. Some linkers do not include the whole library in the output; they only include its symbols that are referenced from other object files or libraries. Libraries exist for diverse purposes, and one or more system libraries are usually linked in by default.

The linker also takes care of arranging the objects in a program 's address space. This may involve relocating code that assumes a specific base address to another base. Since a compiler seldom knows where an object will reside, it often assumes a fixed base location (for example, zero). Relocating machine code may involve re-targeting of absolute jumps, loads and stores.

The executable output by



References: • David William Barron, Assemblers and Loaders. 1972, Elsevier. • C. W. Fraser and D. R. Hanson, A Machine Independent Linker. Software-Practice and Experience 12, 4 (April 1982). • The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition. The Open Group. Retrieved 2008-06-23. • John R. Levine: Linkers and Loaders, Morgan-Kauffman

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Homework Week 2

    • 743 Words
    • 3 Pages

    5. Bob enters a pizza shop and notices there are three different sizes of pizzas available. Sizes are given as the diameter of the pizza in inches. The cost of a pizza is based on the size. Bob would like to know which size of pizza has the lowest cost per square inch.…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    instructions to load the registers of the processor with data from a central memory and to…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Satisfactory Essays

    Link is basically nothing more than a shortcut. Its purpose is to get Windows to think that a file or folder which is…

    • 314 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is used to translate high level language programs to machine language (or machine code)? Compiler…

    • 738 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    6 8c Chapter Excercises

    • 515 Words
    • 2 Pages

    In object-oriented analysis each object represents real people, places, events, and transactions (nouns). Unlike structured analysis, which treats data and processes separately, objects include data and processes that can affect the data. A major advantage of O-O designs is that systems analysts can save time and avoid errors by using modular objects, and programmers can translate the designs into code, working with reusable program modules that have been tested and verified…

    • 515 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Intro the Programming

    • 386 Words
    • 5 Pages

    The _______ is the memory address that is saved by the system when a method is called and is the location to which…

    • 386 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    PT1420 Assign. 10

    • 702 Words
    • 4 Pages

    Open the file – it creates a connection between the file and the program. Opening and output file usually creates the file on the disk and allow the program to write data to it. Opening an input file allows the program to read data from the file.…

    • 702 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Lessons of Valujet 592

    • 1044 Words
    • 5 Pages

    Engineering Handbook, version 3.2 (Report No. INCOSE-TP-2003-002-03.2). Retrieved from INCOSE website: SE Handbook 2010-0201 v3.2 Updated Final 8.5x11.pdf…

    • 1044 Words
    • 5 Pages
    Better Essays
  • Good Essays

    *SUPERSEDURE NOTICE - This technical manual supersedes TM 9-1005-213-23&P dated 15 March 2002, including all changes.…

    • 73810 Words
    • 656 Pages
    Good Essays
  • Good Essays

    Reusability of Code

    • 511 Words
    • 3 Pages

    Object-oriented programming and procedural programming are two programming paradigms that distribute common attributes as well as various differences. A procedure is an additional name for a routing, technique or function. Procedures and objects both use algorithms to develop the system and any logical calculation that is necessary for the program. A function is divided from variables and data compositions. Procedures are intended to run the code in a precise order, while OPP merges data with the function in the function changes the data that is bound to it into a unit identified as an object. Other useful features such as abstraction, encapsulation, and inheritance can be achieved while working with OPP.…

    • 511 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    CHAPTER 3 QUESTIONS

    • 438 Words
    • 7 Pages

    The __________ contains the basic elements of a user’s program and can be generated directly from a compiled object file.…

    • 438 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    The compiler adds a symbol table to the executable so that variable names from the source code can be understood. The compiler avoids optimizing operations so that lines of code in the executable can be related to the original lines of source code.…

    • 567 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Intro to Computers

    • 340 Words
    • 2 Pages

    Most computer software falls into one of three categories: compilers and other translator programs, software applications, and system software. Describe and give examples of each. [RQ, no. 2]…

    • 340 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    [8] presented the ‘path-copying’ technique to make…

    • 4093 Words
    • 17 Pages
    Best Essays
  • Good Essays

    Parallel Arrays

    • 427 Words
    • 2 Pages

    Compared to arrays, linked data structures allow more flexibility in organizing the data and in allocating space for it. With arrays, we must choose a size for our array once and for all; this can be a potential waste of memory. A linked…

    • 427 Words
    • 2 Pages
    Good Essays