32 bit - 64 bit

Posted on 2004-04-08
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
  • 3
  • 2
LVL 18

Accepted Solution

liddler earned 125 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.
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reinstall 1 78
Virtualizing TAPE on dual VIOS 3 87
Oracle Finace 3 77
How to check the PVU´s on AIX TSM servers? 3 95
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

777 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