1752375 Members
5901 Online
108787 Solutions
New Discussion юеВ

32bit vs 64 bit

 
SOLVED
Go to solution
Lai Nee Shyang_1
Frequent Advisor

32bit vs 64 bit

hi there,

is there a command to check if a file is compile as 32 bit or 64 bit ?

thanks

Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.
3 REPLIES 3
whiteknight
Honored Contributor
Solution

Re: 32bit vs 64 bit

Hi Lai,

You see the different ?
using file command
# file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
-> this is 64 bit

#file /usr/bin/sar
/usr/bin/sar: PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked
-> this is 32 bit.


WK.
ps remember to assign points
Problem never ends, you must know how to fix it
Lai Nee Shyang_1
Frequent Advisor

Re: 32bit vs 64 bit

thanks..
If it doesn't work, We'll make it work. If it works, We'll make it work better.
Dennis Handly
Acclaimed Contributor

Re: 32bit vs 64 bit

If you are on IPF, you see:
$ file /usr/lib/hpux32/libc.so.1
/usr/lib/hpux32/libc.so.1: ELF-32 shared object file - IA64
$ file /usr/lib/hpux64/libc.so.1
/usr/lib/hpux64/libc.so.1: ELF-64 shared object file - IA64