1 / 6

Lab4: Virtual Memory

Lab4: Virtual Memory. CS 3410 : Computer System Organization & Programming Spring 2014. Single vs. Multi Level Page Table. Directory. Multi-Level Page Table. Single-Level Page Table. Wrap-up : Address Translation. Lab 4 : C Operator Exercise.

etana
Télécharger la présentation

Lab4: Virtual Memory

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab4: Virtual Memory CS 3410 : Computer System Organization & Programming Spring 2014

  2. Single vs. MultiLevel Page Table Directory Multi-Level Page Table Single-Level Page Table

  3. Wrap-up : Address Translation

  4. Lab 4 : C Operator Exercise • Leftshifta variable A to the left by 5 bits and store it in A. A = A << 5; • Rightshift a variable A to the left by 5 bits and store it in A. A = A >> 5; • AND, OR, and XOR two variables and store them into a third variable. z = x & y; z = x | y; z = x ^ y; • Change a variable into its negation. z = ~z;

  5. Lab 4 : Virtual Memory • What to implement (vmem.c) • create_address_space() • map_page() Optional: • map_shared_page() • pfault() • Where to start with • Start from reading ‘mem.h’ • Each function in vmem.c has headers in mem.h which has comprehensive comments on what to do.

  6. Lab 4 : Virtual Memory • Useful Physical Memory API functions • Headers provided in mem.h, implementations provided in pmem.c • allocate_physical_page() • dereference_physical_page(unsigned intppn) • Debugging Tools • gdb debuggers • Function : dump_physical_memory()

More Related