1834740 Members
3141 Online
110070 Solutions
New Discussion

Re: 64bit or 32bit

 
SOLVED
Go to solution
Mazen Jarrah
New Member

64bit or 32bit

Hello everyone,

how can I know if the system I'm using is 64bit or 32bit
5 REPLIES 5
Muthukumar_5
Honored Contributor
Solution

Re: 64bit or 32bit

You can know it by using,

getconf HW_CPU_SUPP_BITS

It will give that information to you.

HTH.
Easy to suggest when don't know about the problem!
Mauro Gatti
Valued Contributor

Re: 64bit or 32bit

Try:
$ getconf KERNEL_BITS


RGDS


Mauro
Ubi maior, minor cessat!
Robert-Jan Goossens
Honored Contributor

Re: 64bit or 32bit

Hi,

# file /stand/vmunix
vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)

more info in the faqs.

http://mirrors.develooper.com/hpux/

Regards,
Robert-Jan
Sunil Sharma_1
Honored Contributor

Re: 64bit or 32bit

/opt/ignite/bin/print_manifest|grep OS


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Muthukumar_5
Honored Contributor

Re: 64bit or 32bit

You can known with system configuration with c program as,

#include
main()
{

long ret = sysconf(_SC_HW_32_64_CAPABLE);

if (_SYSTEM_SUPPORTS_ILP32OS(ret) != 0) {
printf ("System supports 32-bit OS");
}

if (_SYSTEM_SUPPORTS_LP64OS(ret) != 0) {
printf ("System supports 64-bit OS\n");
}

}

It will give you the details there.

HTH.
Easy to suggest when don't know about the problem!