个人工具

UbuntuHelp:32bit and 64bit/zh

来自Ubuntu中文

Yegle讨论 | 贡献2007年6月15日 (五) 17:59的版本 64-bit and 32-bit

跳转至: 导航, 搜索

64-bit and 32-bit

Most computers run in 32 bit. Processors capable running 64-bit mode are AMD's Athlon x64, FX, X2 processors, Intel's Itanium and Xeon, Intel Core 2, Pentium D, some versions of Pentium 4 and Celeron D. For AMD processors, if the processor supports AMD64, and for Intel processors, if the processor supports EM64T (which is Intel's version of AMD64), the processor is capable of running in 64-bit mode.

  • What about "G5" PowerPC chips? Or SPARC64, MIPS64, etc. (Note: Linux works on EVERYTHING! :) )

大多数计算机目前都是32位的。能够运行64位模式的处理器有AMD 的速龙 x64,FX,X2, Intel的Itanium与Xeon,Intel的Core 2, 奔腾 D, 奔腾 4 与赛扬 D 部分型号。 如果一个AMD处理器支持AMD64,而一个Intel处理器支持EM64T(Intel与AMD64相当的处理器),那么这个处理器就能够运行在64位模式下。

  • 那么 “G5” PowerPC 芯片呢? 或者 SPRC64,MIPS64等等?(提示:Linux几乎能够运行在任何东西上:))

What is it?这是什么意思

32 bit and 64 bit is really the size (or width) of a chunk of memory (more accurately, the memory registers) in the computer. A 32 bit computer has a word size of 32 bit, this limits the memory to a very very large number (4 GB of physical ram in practice). A 64 bit computer will handle a literally enormous amount of memory (about 128 GB of physical ram). 32位与64位实际上是计算机存储寄存器的大小或宽度。 一台32位计算机的字节宽度是32位,它的寻址能力非常大(4GB 的物理内存)。 而一台64位计算机的寻址能力简直就是惊人的(大约是120GB物理内存)。 We are moving towards a world where information is stored in a terabyte. A few of these will store all the programs of your favourite TV station for a number of years. When you are moving this amount of data and compressing it to store it more efficiently then you need the extra power 64 bit allows. 我们正在步入一个信息以TB单位存储的世界。 某些计算机将能够存储好几年的你所喜爱的电视节目。当我们想移动如此大量的数据并对其进行压缩以便更有效率地存储数据时,我们需要64位处理器所提供的强大能力。

Which is better 何者更好?

A 64 bit processor is the way of the future, and it is worth mentioning that AMD's 64-bit processors function fine in a 32-bit environment. One might still recommend staying with 32-bit software because the 32-bit software has more support, but that is changing. Within 10 years one would expect most computers to be 64 bit however one might believe that between now and then the average person will have another 2 computers (one every 5 years). 64位处理器代表了未来。值得一提的是,AMD的64位处理器在32位的环境下也运转良好。有人可能建议继续使用32位的软件,因为32位软件的支持更好,但情况在发生变化。我们可以设想在10年时间内有更多的计算机是64位的,但有理由认为在这个时间段内多数人都将拥有另外两台计算机(每五年一台)。

The bottom line is that for free software it is not that important. Code can be converted between the two because it is source code so that most things 'just work'. The unfortunate thing is that it is actually a little tricky converting some programs from 32 to 64 bit and therefore some programs cannot run in native 64 bit mode. They can run in an emulated mode but this will be a little slower. There is even the case when code that works in 64 bit actually runs slower because of the magic in the processor differences. 问题在于对免费软件来说这并不重要。软件代码可以互转,因为使用的是源代码,所以大多数软件都“还不错”。不幸的是,要将有的程序从32位转换为64位实际上有些麻烦,所以某些程序无法在真正的64位模式运行。这些程序可以在模拟的模式下工作,但稍微慢一些。某些代码在64位环境下实际运行速度甚至更慢,这是由于处理器的微妙差异造成的。

On processors that support AMD64 or EM64T, performance might be slightly higher in 64-bit mode than in 32-bit mode. The (technical) reason for this is that in 64-bit mode the processor has more and wider registers available, which means that programs compiled for 64-bit mode can run more efficiently. 如果使用支持AMD64或EM64T的处理器,64位模式的效率可能比32位模式略高。其(技术)原因是,在64位模式下处理器可用的寄存器更多、位数更宽,这意味着为64位模式编译的程序可以更高效地运行。

How to make 32 bit work on a 64 bit machine 怎样在64位机器上运行32位

At this time, those with a 64 bit processor have the option of installing the 64 bit version of Ubuntu.

目前,拥有64位处理器的用户也可以安装64位的Ubuntu系统。

Not all software is available in the 64 bit environment. In particular non-free items are usually 32 bit. For example the Flash plugin is a 32 bit program.

并非所有软件在64位环境下都可用,尤其是,非免费的程序通常都是32位。例如Flash插件就是32位程序。

Some programs can be run in the 64 bit version of Ubuntu by using the 32 bit libraries.

有的程序可在64位Ubuntu下运行,不过要使用32位的库。

You can use sudo and apt-get to install these libraries.

可以使用sudoapt-get来安装这些库。

sudo apt-get install ia32-libs*

One can also use the Synaptic package manager to install the 32 bit libraries.

也可以用Synaptic package manager安装32位库。

Another option is to create a 32 bit environment with chroot

还有个办法是用chroot建立一个32位环境。