- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 32bit or 64bit
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
06-17-2003 11:04 PM
06-17-2003 11:04 PM
Is there such a command in HPUX11.11 that can be use to check if a executable file is compiled in 32bit or 64bit??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 11:09 PM
06-17-2003 11:09 PM
Re: 32bit or 64bit
# getconf KERNEL_BITS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 11:12 PM
06-17-2003 11:12 PM
Re: 32bit or 64bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 11:16 PM
06-17-2003 11:16 PM
Re: 32bit or 64bit
#file
32bit --->
PA-RISC1.1 shared executable dynamically linked
64 bit --->
ELF-64 shared object file - PA-RISC 2.0 (LP64)
Other way would be using
#chatr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 11:19 PM
06-17-2003 11:19 PM
Re: 32bit or 64bit
to know if a binary is 32 ou 64 bits use
file binary
if you got PA-RISC1.1 executable it is a 32 bits, if you got ELF-64 executable object file then ...
To know if the hardware support 32 or 64 bits use
getconf HW_CPU_SUPP_BITS
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 11:22 PM
06-17-2003 11:22 PM
Re: 32bit or 64bit
e.g.
# file /usr/sbin/pvdisplay
Returns with PA-RISC 1.x are 32 bit
Returns with PA-RISC 2.x are 64 bit
The usage of 'getconf kernel_bits' tells you th running kernel. You can't run anything that is 64 bit on a 32 bit kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2003 11:47 PM
06-17-2003 11:47 PM
SolutionDoes my system support 64bit builds
You can find out if your kernel supports 64bit binaries by issuing:
a5:/usr/local 110 > file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
a5:/usr/local 111 > getconf KERNEL_BITS
64
a5:/usr/local 112 > getconf HW_32_64_CAPABLE
1
a5:/usr/local 113 >
HP-UX 10.20 does not support 64bit objects
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
Enjoy, have FUN! H.Merijn