System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How to determine whether a process is 64/32 bit

 
SOLVED
Go to solution
Ian Killer_1
Regular Advisor

How to determine whether a process is 64/32 bit

Hello Happy Clappers...

Is there any way to determine whether a running process has been compiled as a 32 or a 64 bit binary?
Where ever the gypsies rome.
2 REPLIES 2
Madhu Kangara
Frequent Advisor
Solution

Re: How to determine whether a process is 64/32 bit


http://www.cmve.net/~merijn/
and go to the last portion. There is a small FAQ. Here are some cuttings

How can I see if my program is a 64bit object?
a5:/usr/local 108 > file pa*/bin/gcc
pa11_32/bin/gcc: PA-RISC1.1 shared executable dynamically linked -not stripped
pa20_32/bin/gcc: PA-RISC2.0 shared executable dynamically linked -not stripped
pa20_64/bin/gcc: ELF-64 executable object file - PA-RISC 2.0 (LP64)
a5:/usr/local 109 >
How can I see how my binary was compiled?
Provided your binary isn't stripped, and it is 32bit SOM that info should be reveiled with odump -compunit

Provided your binary isn't stripped, and it is 64bit ELF (LP64) that info should be reveiled with elfdump -dc

Do I need 64bit gcc?
You only need 64bit gcc if you have to build 64bit binaries. gcc/64 cannot build 32bit binaries, so if you need both, you need two versions/builds of gcc

Ian Killer_1
Regular Advisor

Re: How to determine whether a process is 64/32 bit

Oh yeah of course. Perfect answer. Thanks.
Where ever the gypsies rome.