Terry : Use isainfo to determine 32-bit or 64-bit

isainfo - describe instruction set architectures

Kernel

The name of the instruction set(s) used by  the operating  system  kernel  components  such  as device drivers and STREAMS modules.

terry@solaris:~$ isainfo -kv
64-bit amd64 kernel modules

Number of bits in the address space of the native instruction set.

 

terry@solaris:~$ isainfo -bv
64-bit amd64 applications
    ssse3 tscp ahf sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu

The name of the native instruction set used by portable applications supported by the current version of the operating system

terry@solaris:~$ isainfo -nv
64-bit amd64 applications
    ssse3 tscp ahf sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 


Sample:

Solaris 10

bash-3.00# isainfo -v
64-bit amd64 applications
        ssse3 cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
        ssse3 cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu
bash-3.00# isainfo -b
64

Solaris 11.1 x86_64

terry@solaris:~$ isainfo -v
64-bit amd64 applications
    ssse3 tscp ahf sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu 
32-bit i386 applications
    ssse3 tscp ahf sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu