Operating Systems Lecture Notes

5 March 2012 • Physical Addressing


Outline

Physical Store

Physical Addresses

Some Code

int find(a[], n, x)
  for i = 0 to n - 1
    if a[i] == x
      return i
  return -a

    movl 0, (iadr)
    jmp  L2
L5: movl (iadr), %eax
    sall 2, %eax
    addl aadr, %eax
    movl (%eax), %eax
    cmpl (xadr), %eax
    jne  L3
    movl (iadr), %eax
    jmp  L4
L3: addl $1, (iadr)
L2: movl (iadr), %eax
    cmpl (nadr), %eax
    jl   L5
    movl -1, %eax
L4:

Addresses

Binding Example

Partitioned Allocation

Summary


This page last modified on 2011 October 9.

Creative
    Commons License