Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


32 bit - 64 bit

Posted on 2004-04-08
Medium Priority
Last Modified: 2013-12-06
I am on a HP-UX 11.11.
How can i know if my machine is 32 bit or 64 bit?
If i create a exe in 64 bit, how can i verify that it is indeed 64 bits.
Question by:pandey5
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 18

Accepted Solution

liddler earned 500 total points
ID: 10782291
LVL 45

Expert Comment

ID: 10782314
Hi pandey5,

liddler has posted the solution ... still take a look at

the script gives you little more info in a good format


Author Comment

ID: 10782335
Thanks for the answers, it completely answers my question. 1 more question though:
If i am linking many libraries in my application and not all are 64 bit, will the linker complain about 32 bit libs if i compile and link in 64 bit mode.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 45

Expert Comment

ID: 10782348

yes ... 32 bit libraries cannot be linked with 64 bit code and 64 bit libraries cannot be linked with 32 bit code ...

both need to have same word length


Author Comment

ID: 10783323
One question, may be it is straight forward to you, when i am trying to create a shared library from the 64 bit compiled objects:
/opt/aCC/bin/aCC +DD64 -AA -D__HPACC_THREAD_SAFE_RB_TREE -mt -DRWSTD_MULTI_THREAD -DRW_MULTI_THREAD -D_REENTRANT -D_THREAD_SAFE -Wl,+n -Wl,+s -Wl,+k -Wl,+n -b -o ~/proj/bfebv30_1/lib/ *.o

 i am getting the following error:
/usr/ccs/bin/ld: EB_GeneralInfo.o: Mismatched ABI. 64-bit PA object file found in 32-bit link.

How can i force it to do 64 bit linkage? I gave all the options i am supposed to give....
LVL 45

Expert Comment

ID: 10789912
gcc provides some options for hardware specific configuration (including 64/32 bits) ...

Look into the hardware specific options and linking options subsection in the manual for your compiler to see the exact options available to you

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question