Solved

32 bit - 64 bit

Posted on 2004-04-08
8
959 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:

706 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

18 Experts available now in Live!

Get 1:1 Help Now