- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I know if an executable is of 32 or 64...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:30 PM
03-01-2004 08:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:34 PM
03-01-2004 08:34 PM
Re: How can I know if an executable is of 32 or 64 bits ?
You can use the file command,
# file /usr/local/bin/lsof
lsof: ELF-64 executable object file - PA-RISC 2.0 (LP64)
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:35 PM
03-01-2004 08:35 PM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=15503
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=210966
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:39 PM
03-01-2004 08:39 PM
Re: How can I know if an executable is of 32 or 64 bits ?
man file for more details
with best wishes
naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:43 PM
03-01-2004 08:43 PM
Re: How can I know if an executable is of 32 or 64 bits ?
Merijn has a good page online, with a FAQ that includes this question. Find it here:
https://www.beepz.com/personal/merijn/#FAQ
From the page:
#
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 >
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:45 PM
03-01-2004 08:45 PM
Re: How can I know if an executable is of 32 or 64 bits ?
file only indicate PA-RISC1.1 or PA-RISC2.0
Is it equivalent to 32 or 64 bits ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:58 PM
03-01-2004 08:58 PM
Re: How can I know if an executable is of 32 or 64 bits ?
link by Sanjay Kumar will clear your doubts.
Anyway yes, PA-RISC 1.1 means that it is 32 bit and PA-RISC 2.0 means that it is 64 bit.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:59 PM
03-01-2004 08:59 PM
Re: How can I know if an executable is of 32 or 64 bits ?
The file command returns if a executable is 64 bits. In case of a PA-RISC 1.1 it can not be a 64 bits because there wa no 64 bits version for 1.1. PA-RISC 2.0 has both options 32 and 64 bits.
Below you can see both, lsof is 64 bits compiled on PA-RISC 2.0, tusc is a 32 bits compiled on PA-RISC 1.1, both run great on my server 11.0 64 bits.
:/usr/local/bin# file lsof
lsof: ELF-64 executable object file - PA-RISC 2.0 (LP64)
:/usr/local/bin# file tusc
tusc: PA-RISC1.1 shared executable dynamically linked
Robert-Jan