我在不同的体系结构上提供32位或64位寄存器,以及如何在低级别运行。然而,有一件事一直困扰着我......无论你是32位还是64位的特定术语。例如:什么是适合32位和64位“32位”的术语
string XXX;
if(architecture == i386) XXX = "32"; else if(architecture == x86_64) XXX = "64";
... go on to use variable XXX ...
So, what would I name my variable? Not architecture. Not "bits". Not "bus width" or "register width" (that would seem quite out of place I think)
So what would this variable be named and what would someone say in conversation?
我认为这也许是正确的,但与16位的冲突被广泛认为是x86体系结构的字大小。例如在x86-64上,一个64位寄存器操作实际上是用“pushq”完成的,q表示四字(16 * 4 = 64)。只是因为x86很荒谬并不意味着你错了,但它是一个东西IMO – Nektarios 2011-06-02 13:21:20
@Nektarios哈哈你肯定比我更了解这件事。我认为这个问题有多个正确的答案。 – 2011-06-02 13:25:13