Solved

32 bit - 64 bit

Posted on 2004-04-08
8
964 Views
Last Modified: 2013-12-06
Hi,
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.
Thanks,
0
Comment
Question by:pandey5
  • 3
  • 2
8 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 125 total points
ID: 10782291
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10782314
Hi pandey5,

liddler has posted the solution ... still take a look at
http://servdoc.sourceforge.net/docs/pod/ServDoc_0010hardware--hpux.pod.html

the script gives you little more info in a good format

Sunnycoder
0
 
LVL 1

Author Comment

by:pandey5
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 45

Expert Comment

by:sunnycoder
ID: 10782348
pandey5,

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

Sunnycoder
0
 
LVL 1

Author Comment

by:pandey5
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/libbfebill.sl *.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....
0
 
LVL 45

Expert Comment

by:sunnycoder
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best software for Unix commands in Windows cmd.exe? 18 102
remove a combination of patterns from a file 15 60
Unix/bash: scripted arithmetic 13 96
Shell Script on AIX 7 65
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now