计算页面大小和段大小 [英] calculating page size and segment size

查看:313
本文介绍了计算页面大小和段大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个分页分段系统,我们有32位和用于段的偏移量,11位12位和用于页number.the我们如何能够计算出页大小,最大段大小和最大数9比特虚拟地址段大小的?

in a paged-segmented system we have the virtual address of 32 bits and 12 bits for the offset,11 bits for segment and 9 bits for page number.the how can we calculate the page size ,maximum segment size and maximum number of segment size?

推荐答案


  • 12比特被保留用于抵消,所以页大小为2 ^ 12 = 4KB

  • 9位保留页码,所以每一段都可以包含2 ^ 9 = 512页

  • 每个段可长到中(页#)大小*(页面大小),所以最大段大小为512 * 4K = 2M

有关更多信息,请参阅<一个href=\"http://www.cs.umass.edu/~weems/CmpSci535/Discussion21.html\">http://www.cs.umass.edu/~weems/CmpSci535/Discussion21.html

这篇关于计算页面大小和段大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆