LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Recompile RHEL 32-bit code on AMD's Opteron? (https://www.linuxquestions.org/questions/linux-general-1/recompile-rhel-32-bit-code-on-amds-opteron-303251/)

rmhaddad 03-18-2005 01:53 PM

Recompile RHEL 32-bit code on AMD's Opteron?
 
Hi,

I have a 32-bit Intel machine running RHEL3. That's where I build some executables. Can I use them on a machine with an AMD Opteron w/ 32-bit/64-bit support running RHEL3 without having to recompile the code? Any documentation on that?

Thanks,
RH

t3gah 03-20-2005 09:36 PM

IF that worked no one would compile on their 64bit systems and it would be a news event of biblio proportions. It would be on http://www.linux.org on the main page!

But seriously I haven't heard of it. Sorry.. I'd just try a test with something non-critical and see if it worked and then go from there. If it does work you'll make history. Please remember this place and post the HOWTO in the Linux Tutorials section if you do figure out a way.

There's also http://www.x86-64.org/ and if it aint there I'd download a new distro that is completely 64Bit and wait for the rpm's to catch up to the system, etc.

rmhaddad 03-21-2005 12:47 AM

Thanks, t3gah. I was able to get an answer from Redhat saying that I should be able to run 32-bit binaries on a 64-bit AMD machine without having to recompile them.

t3gah 03-21-2005 01:18 AM

Quote:

Originally posted by rmhaddad
Thanks, t3gah. I was able to get an answer from Redhat saying that I should be able to run 32-bit binaries on a 64-bit AMD machine without having to recompile them.
I'd wonder about that answer thought. What does the 64Bit portion advantage give you then if you are running 32bit applications?

rmhaddad 03-21-2005 01:31 AM

Here's what they said: It's like a "backward compatibility" feature. RHEL3 on AMD-64 comes with 32-bit and 64-bit libraries. So if both are installed on the machine, and the binary is dynamically linked with their SOs, then it should be fine."

rmhaddad 03-21-2005 01:34 AM

PS. check out http://www.x86-64.org/documentation/abi-0.95.pdf appendix A.


All times are GMT -5. The time now is 02:28 PM.