32 bits Vs 64 bits

Rigler, Stephen C. srigler at marathonoil.com
Fri May 6 11:55:09 UTC 2005


On Thu, 2005-05-05 at 11:56 -0700, Tobias Speckbacher wrote:
> another way to check would be getconf WORD_BIT which returns the size of
> long (32 or 64).
> 

Interesting.  I have yet to have "getconf WORD_BIT" return 64.

Here's Fedora 3 on a P4:
$ uname -m
i686
$ getconf WORD_BIT
32

Here's RHES3 on IA64:
$ uname -m
ia64
$ getconf WORD_BIT
32

Here's Solaris 8 on an e450 (UltraSparc-II, and probably a bad example):
$ uname -m
sun4u
$ getconf WORD_BIT
32

Here's Irix 6.5.24 on an Origin 3900 (R14000):
$ uname -m
IP35
$ getconf WORD_BIT
16

I don't have any x86_64 machines around to look at.  Does "getconf"
really return "64" on that architecture?

-Steve




More information about the redhat-list mailing list