{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

8.Main_Memory - Memory Management(Main Memory Mehdi Kargahi...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Memory Management (Main Memory) Mehdi Kargahi School of ECE University of Tehran Spring 2008
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
M. Kargahi (School of ECE) Hardware Address Protection
Image of page 2
M. Kargahi (School of ECE) Hardware Address Protection square6 Base and Limit Registers
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
M. Kargahi (School of ECE) Address Binding square6 Binding: a mapping from one address space to another square6 Compiler time (absolute code) square6 Load time (relocatable code) square6 Execution time (process can be moved during its execution) square6 Code may partially be loaded square6 Available in most general-purpose OS
Image of page 4
M. Kargahi (School of ECE) Address Binding
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
M. Kargahi (School of ECE) Logical versus Physical Address Space square6 Logical address : the address generated by the CPU square6 Physical address : the address seen by the memory unit (loaded into memory address register) square6 Virtual address : logical address in execution time binding which is different from the respective physical address square6 Mapping is done using MMU (memory- management unit)
Image of page 6
M. Kargahi (School of ECE) Dynamic Loading square6 A routine is not loaded until it is called square6 For better memory space utilization square6 Process size is not limited to the size of physical memory square6 An almost general rule: 10% main program and 90% for exception handling square6 Dynamic loading does not require special support from the OS, but OS may help the programmer by providing special library routines
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
M. Kargahi (School of ECE) Dynamic Linking and Shared Libraries square6 Static linking versus dynamic linking square6 Here, linking rather than loading is postponed until execution time square6 To save both disk space and memory square6 Stub : a small piece of code indicating how to locate the appropriate library routine square6 Only one copy of the library routine is loaded square6 Library bug fixes are much more simpler square6 Shared libraries: related to different library versions for different processes barb2right previously compiled programs are not affected by the new versions square6 Needs support from the OS for usage of a library by multiple processes
Image of page 8
M. Kargahi (School of ECE)
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern