I have Redhat 4.4 running on a roomful of machines with Xeon processors. I want to write a program to prove they are 32 or 64 bit CPUs, but I'm stumped. Is there a C program to test if a CPU is 32bt or 64bt even if it's running in a 32bit OS?
/proc/cpuinfo provides a lot of good information -- if it doesn't say anything about a 64 bit CPU in that file, e.g. x64, does that mean I have a 32 bit processor? I thought the Xeon CPU was 64 bit, but I cannot prove that, one way or another yet.