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


OSTEP Chapter 15

Base & Bounds Address Translation


Base and Bounds

Problems with base & bounds relocation:

Segmentation

Let's generalize this base and bounds approach to allow multiple segments per process.

  • 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 © 2013, 2018, 2020 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.