[理工] [計組]-清大93-page計算
※ 引述《polomoss (小澤)》之銘言:
: Consider a logical address of 2048 pages of 1024 words (4byte) each,
mapped onto a physical of 64 frames.
Assume the smallest memory allocation unit is one byte
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: a. How many bits in the logical and physical address
: b. one-level page table is used, how many bytes are required by PT
: c. two-level PT is used, and first level table has 32 entries,
: what is the minimal amount of memory required by PT.
剛好寫到有問題 借標題問一下
他說最小配置是 1 byte
那個1-level的page table的entry ( 1(valid) + 6 ) bits 因為最小配置為1byte
所以配給他 每個entry 1 byte
我覺得很怪 到底是在entry的時候就配給1 btye 還是page table配完再以byte算
可是我覺得page table配完再以byte算 如此他幹麻還特別說明最小配置是 1 byte
直接答案就是有bits 跟 bytes兩種答案
所以2-level的inner P.T.的entry也是1 byte
歡迎討論
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.127.208.96
※ 編輯: yesa315 來自: 140.127.208.96 (01/11 10:23)
推
01/13 00:40, , 1F
01/13 00:40, 1F
→
01/13 00:41, , 2F
01/13 00:41, 2F
→
01/13 00:41, , 3F
01/13 00:41, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 6 之 7 篇):