[理工] [計組] ch2 關於memory address的問題
97 中山資工
How many ,e,ory accesses are required to execute a "store" instruction with
memory indirect addressing ?
ans : 含IF則是3 不含則是2
(我算的結果都少1...)
95 清大電機
What is x if the maximum number of memory words you can use in a 32-bit MIPS
machine in a single program is expressed as 2^x ?
(Note:MIPS uses a byte addressing scheme.)
ans : x = 26.
我是這樣想的 1 byte = 8 bit, 1 word = 4 byte
x = 32 - lg(8) - lg(4) = 27
可是還是少1... 不知道我哪裡想錯了??
先謝謝大家了~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.32.69
推
01/13 13:29, , 1F
01/13 13:29, 1F
→
01/13 13:29, , 2F
01/13 13:29, 2F
→
01/13 14:52, , 3F
01/13 14:52, 3F
推
01/13 15:24, , 4F
01/13 15:24, 4F
→
01/13 23:31, , 5F
01/13 23:31, 5F
→
01/13 23:31, , 6F
01/13 23:31, 6F
→
01/14 11:17, , 7F
01/14 11:17, 7F