CS 537 Notes, Section #15: Base and Bounds, Segmentation


Base & bounds relocation:

Problem with base&bound relocation:

Multiple segments.

  • Segment table holds the bases and bounds for all the segments of a process.
  • Show memory mapping procedure, involving table lookup + add + compare. Example: PDP-10 with high and low segments selected by high-order address bit.

    Segmentation example: 8-bit segment number, 16-bit offset.

    Advantage of segmentation: segments can be swapped and assigned to storage independently.

    Problems:

    Example: in PDP-10's when a segment gets larger, it may have to be shuffled to make room. If things get really bad it may be necessary to compact memory.



    Copyright © 1997, 2002, 2008 Barton P. Miller
    Non-University of Wisconsin students and teachers are welcome to print these notes their personal use. Further reproduction requires permission of the author.