简体   繁体   中英

calculating page size and segment size

在分页分段的系统中,虚拟地址的偏移量为32位和12位,段的虚拟地址为11位,页码的虚拟地址为9位。如何计算页面大小,最大段大小和最大段大小数?

  • 12 bits are reserved for offset, so the page size is 2^12 = 4KB
  • 9 bits are reserved for page number, so each segment can contain 2^9 = 512 pages
  • Each segment can grow up to size of (# of pages) * (pages size), so maximum segment size is 512 * 4K = 2M

For more information see http://www.cs.umass.edu/~weems/CmpSci535/Discussion21.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM