How can I determine programmatically whether my machine is an x86, x64 or an IA64?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- Sorting 3 numbers without branching [closed]
- How to maintain order of key-value in DataFrame sa
- Graphics.DrawImage() - Throws out of memory except
VBScript, checking the PROCESSOR_ARCHITECTURE environment variable:
VBScript, using WMI:
What's usually more important than the underlying processor is what mode the OS is running in, in ADDITION to the processor that's installed on the host.
Examine the output of "uname -p" (or uname(2))
Intel adopted AMD's extensions for 64-bit instructions so a value of "x86_64" means you're running either an Intel or AMD 64-bit processor, otherwise you're running the regular x86 ISA.
In Java you shouldn't need to know. ;)
cpu-z is the program you want, it will tell you which processor you have and what extensions it supports
cat /proc/cpuinfo
On Windows Systems you can get the environment variable PROCESSOR_ARCHITECTURE. Here is an MSDN article explaining the values that can be returned.