"Addresses are for individual bytes (8 bits)" 是什么意思?
What does "Addresses are for individual bytes (8 bits)" mean?
有人可以为我解释一下吗?
Addresses are for individual bytes (8 bits)
我已将整段内容粘贴到下面:
The MIPS has a 32 bit architecture, with 32 bit instructions, a 32
bit data word, and 32 bit addresses.
It has 32 addressable internal registers requiring a 5 bit register address. Register 0 always has the the constant value 0.
Addresses are for individual bytes (8 bits) but instructions must have
addresses which are a multiple of 4. This is usually stated as “instructions must be word aligned in memory.
Link 到 pdf:
http://web.cs.mun.ca/~paul/cs3725/material/review.pdf
下面的代码,我看不懂IMem[i] = bitset<8>(line)
explain this “Addresses are for individual bytes (8 bits)” for me?
表示一个字节的大小为8位。两个相邻的地址将相隔 8 位。一个 32 位字由 4 个字节组成。
此外,这意味着 - 尽管指令的地址操作数必须对齐到 4 字节边界,如以下句子中所述 - 每个字节都有一个唯一的地址。
By unique address, do you mean unique 5 bit values?
没有。 内存 地址是 32 位值。
where are addresses usually saved?
Where-ever 任何值都被保存。在给定的描述中,描述了两个可能的位置:内存中或寄存器中。
有人可以为我解释一下吗?
Addresses are for individual bytes (8 bits)
我已将整段内容粘贴到下面:
The MIPS has a 32 bit architecture, with 32 bit instructions, a 32 bit data word, and 32 bit addresses. It has 32 addressable internal registers requiring a 5 bit register address. Register 0 always has the the constant value 0.
Addresses are for individual bytes (8 bits) but instructions must have addresses which are a multiple of 4. This is usually stated as “instructions must be word aligned in memory.
Link 到 pdf:
http://web.cs.mun.ca/~paul/cs3725/material/review.pdf
下面的代码,我看不懂IMem[i] = bitset<8>(line)
explain this “Addresses are for individual bytes (8 bits)” for me?
表示一个字节的大小为8位。两个相邻的地址将相隔 8 位。一个 32 位字由 4 个字节组成。
此外,这意味着 - 尽管指令的地址操作数必须对齐到 4 字节边界,如以下句子中所述 - 每个字节都有一个唯一的地址。
By unique address, do you mean unique 5 bit values?
没有。 内存 地址是 32 位值。
where are addresses usually saved?
Where-ever 任何值都被保存。在给定的描述中,描述了两个可能的位置:内存中或寄存器中。