简体   繁体   English

macbook air 501 是 64 位还是 32 位? 我应该选择哪个版本的Eclipse?

[英]Is macbook air 501 64-bit or 32-bit? Which version of Eclipse should I choose?

The information from "unname -a" tells that it is i386.来自“unname -a”的信息表明它是 i386。 But I found that some applications in the Activity Monitor are with types "Intel 64".但我发现活动监视器中的某些应用程序的类型为“Intel 64”。 What's more, the System Profiler says:64-bit Kernel and Extensions, no.更重要的是,系统分析器说:64 位 Kernel 和扩展,没有。 So, which version of Eclipse should I choose, 64-bit or 32-bit?那么,我应该选择哪个版本的 Eclipse,64 位还是 32 位?

The same of Java, try Java 一样,试试

java -version

32-bit: 32 位:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

64-bit: 64 位:

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

I usually use sysctl :我通常使用sysctl

bash$ /usr/sbin/sysctl hw.cpu64bit_capable
hw.cpu64bit_capable: 1
bash$

You don't really care about the hardware though.不过,您并不真正关心硬件。 Eclipse cares about which java you are running. Eclipse 关心您正在运行哪个 java。 rekin's answer for Eclipse. rekin 对 Eclipse 的回答。

Note: I added this answer just in case anyone stumbles across this in the future.注意:我添加了这个答案,以防将来有人偶然发现这个问题。

See the nice article Booting into 64-bit mode (Snow Leopard) on how to test whether your machine is 64-bit capable and how to boot into 64-bit mode, if you wish to.请参阅好文章Booting into 64-bit mode (Snow Leopard) ,了解如何测试您的机器是否支持 64 位以及如何启动到 64 位模式(如果您愿意)。

The interesting part:有趣的部分:

With 32-bit firmware, you cannot boot into 64-bit kernel;使用 32 位固件,您无法启动到 64 位 kernel; it's not possible.这是不可能的。

To determine if your Mac has 32-bit or 64-bit firmware, copy/paste the following command shown in red into Terminal (Terminal is found in the /Applications/Utilities folder):要确定您的 Mac 是 32 位还是 64 位固件,请将以下红色显示的命令复制/粘贴到终端(终端位于 /Applications/Utilities 文件夹中):

llcMP:~ lloyd$ ioreg -l -p IODeviceTree | grep firmware-abi
    | |   "firmware-abi" = <"EFI64">

As shown above, the firmware-abi has the value EFI64, indicating that my Mac Pro is 64-bit capable.如上所示,firmware-abi 的值为 EFI64,表示我的 Mac Pro 支持 64 位。 If it reads EFI32, then your Mac cannot be booted into a 64-bit kernel.如果它读取 EFI32,则您的 Mac 无法启动到 64 位 kernel。

Edit: Since the original color is lost, the command one has to copy and paste in the terminal is: ioreg -l -p IODeviceTree | grep firmware-abi编辑:由于原始颜色丢失,必须在终端中复制和粘贴的命令是: ioreg -l -p IODeviceTree | grep firmware-abi ioreg -l -p IODeviceTree | grep firmware-abi

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM