看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《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)
killerjoe:我覺得應該是每個entry都要以byte來計算 01/13 00:40
killerjoe:因為既然allocation是以byte那麼access應該也要以byte當 01/13 00:41
killerjoe:unit 01/13 00:41