[SunHELP] 32 or 64 bit?????

Greg sunhelp at sunhelp.org
Wed Mar 28 15:49:19 CST 2001


> try this:
> 
>    cd /kernel
>    file *
> 
> The file command will tell you if an executable file is 32 or 64 bit.

Sure, but all 64-bit installations also include the 32-bit objects so what
does it prove?  You'll find all 32-bit objects in the base directories (eg, /
kernel/drv) and you'll find all 64-bit objects in the "sparcv9"
subdirectories (eg, /kernel/drv/sparcv9).  If the sparcv9 directories do not
exist you can safely assume that the 64-bit kernel bits aren't installed but
you could just as well use pkginfo to determine that (look for the SUNWcarx
package as a start).  You could even have all of the 64-bit objects
installed but still be booting the 32-bit kernel so running "file" on the
kernel objects really doesn't tell you anything useful about the system.

"isainfo -b" tells you how many "bits" are available to _user_ applications,
not which kernel you are running.  You could make an assumption that the two
are related but why bother when isainfo can answer the "kernel flavor"
question directly?  "isainfo -kv" informs you which flavor of kernel is
currently running without having to rely on implementation assumptions.

-greg




More information about the SunHELP mailing list