B
bfische
Hi List members,
I have been trying to develop some code to figure out if a system is 32
or 64-bits.
I first thought about checking for the value of the Java System
Property "os.arch" but that doesn't help as it doesn't specify the
"bitness" of the processor.
I need to differentiate between a Linux on x86-32 bit or x86-64
(processor can be Intel or AMD) but I can't figure ou how.
uname -p seems to work (gives i686) but I am not sure this will always
return this (I don't have an AMD but I assume it will return a
different value).
Is there an OS command that print the hardware bit mode? (something
like getconf HARDWARE_BITMODE on AIX).
Thanks
I have been trying to develop some code to figure out if a system is 32
or 64-bits.
I first thought about checking for the value of the Java System
Property "os.arch" but that doesn't help as it doesn't specify the
"bitness" of the processor.
I need to differentiate between a Linux on x86-32 bit or x86-64
(processor can be Intel or AMD) but I can't figure ou how.
uname -p seems to work (gives i686) but I am not sure this will always
return this (I don't have an AMD but I assume it will return a
different value).
Is there an OS command that print the hardware bit mode? (something
like getconf HARDWARE_BITMODE on AIX).
Thanks