Re: How to ID 32 vs 64 bit?
From: Robert Heller (heller_at_deepsoft.com)
Date: Thu, 30 Sep 2004 22:46:59 +0200
Juhan Leemet <firstname.lastname@example.org>,
In a message on Thu, 30 Sep 2004 14:31:13 -0200, wrote :
JL> On Thu, 30 Sep 2004 09:36:30 -0400, Jean-David Beyer wrote:
JL> > Doug O'Leary wrote:
JL> >> On 2004-09-30, Doug O'Leary <email@example.com> wrote:
JL> >>>Here's the particulars as the system sees it:
JL> >> [snipped /proc/cpuinfo display]
JL> > Do you want to find _32_ or _64_ in there? The nearest would be to make a
JL> > little table with the names, or the family and model numbers, to convert
JL> > what you have in /proc/cpuinfo to wordsize.
JL> > As far as I know, all Pentium machines are 32-bit, though some can seem a
JL> > little more (e.g., my Xeon processors can offer up to 4GB to a single
JL> > process, but I can have (if the motherboard would take it) up to 64 GBytes
JL> > ram. Actually, the motherboard will accept only 16 GBytes, but that is
JL> > more than I need at the moment.
JL> > My /proc/cpuinfo starts out:
JL> > $ cat /proc/cpuinfo
JL> > processor : 0
JL> > vendor_id : GenuineIntel
JL> > cpu family : 15
JL> > model : 2
JL> > model name : Intel(R) Xeon(TM) CPU 3.06GHz
JL> > ...
JL> Why is everyone automatically assuming Intel CPUs? With some passing
JL> mention of AMDs? What about Alpha? What about SPARC? others? I suggest
Alphas are all 64 bit -- there are no 32 bit Alphas. If 'Alpha' is in
the model name, it is 64 bit. UltraSpacs are also 64-bit, but like
AMD64's can run in 32-bit mode (run 32-bit code). Non-'Ultra' Sparcs are
JL> that we should be thinking more generally (first, consider
JL> "architecture"), then mapping to specifics (design & implementation).
JL> In another post I suggested isainfo (instruction set architectures) as
JL> used on Sun Solaris as a model of something that could be useful.
JL> Now that I think of it, ISTR some (maintenance?) program/script that would
JL> identify CPU and capabilities... but I can't remember any details...
JL> Juhan Leemet
JL> Logicognosis, Inc.