Is it possible to compile 64 bit application on 32 bit machine


 
Thread Tools Search this Thread
Operating Systems Linux Is it possible to compile 64 bit application on 32 bit machine
# 1  
Old 12-26-2008
Is it possible to compile 64 bit application on 32 bit machine

Hi,
I am using 32 bit machine, and I want to compile 64 bit application on 32-bit machine.
So please tell me is it possible or not?

Regards
Mandar
Mandar123
# 2  
Old 12-29-2008
It is possible to *compile* but not to *run*. You will need to use a cross-compiler (such as gcc) and the full set of header files and libraries for the target platform. It's generally cheaper and faster to just purchase a 64-bit computer Smilie
# 3  
Old 12-30-2008
Thanks otheus.
Mandar123
# 4  
Old 01-06-2009
I'd also add that a 64-bit x86 computer has no problems compiling and running 32-bit programs. Just gcc -m32.
# 5  
Old 01-06-2009
Quote:
Originally Posted by Corona688
I'd also add that a 64-bit x86 computer has no problems compiling and running 32-bit programs. Just gcc -m32.
Theoretically, no. But in 2006, I had problems with some software at one site with a Debian installation. Then there are things like running Firefox, where some plugins only existed in 32-bit form. (Adobe Flash for one, but that was eventually fixed.)

To run 32-bit programs on Linux, the ld linker must correctly search for the right 32-bit libraries at run-time. This can be accomplished with chroot environments, or with a more sophisticated ld.

This might be old news. By now (2008) such kinks have probably been worked out.
# 6  
Old 01-06-2009
Quote:
Originally Posted by otheus
Theoretically, no. But in 2006, I had problems with some software at one site with a Debian installation. Then there are things like running Firefox, where some plugins only existed in 32-bit form. (Adobe Flash for one, but that was eventually fixed.)
Interesting, how was that fixed? I'm running 32-bit Firefox for compatibility with 32-bit flash. I understand there were workarounds but not a real solution. I should check up on Gnash again, I tried it years ago when it still had awful clipping problems...

But that's kind of my point, I can use a 32-bit firefox. An end-user might have issues but developers should have what they need to find the libraries to make it work.
# 7  
Old 01-07-2009
Adobe issued a 64-bit flash plugin, making possible native 64-bit firefox installations. The first few versions were buggy, as I understand it, but as of Firefox 3.0.4 (or so) it's been quite stable. At least, this is according to my successor.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Need help to compile and create python64 bit (2.7.9) on Solaris10

Hi, I am trying to build python(2.7.9) 64 bit from source on solaris10. Using the below to compile ./configure CFLAGS=-m64 LDFLAGS=-m64 But getting errors like below while executing make make: Fatal error: Command failed for target `libinstall' OS info: isainfo -v 64-bit amd64... (9 Replies)
Discussion started by: Sumanthsv
9 Replies

2. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

3. Red Hat

Unable to install 32 bit application on 64 bit OS

Hi, I am new to Linux OS. My question is that "is it possible to install 32 Bit application on 64 Bit OS?" I have the following Redhat OS on VMware workstation. OS - Red Hat Enterprise Linux Server release 6.2 | 2.6.32-220.el6.x86_64 While installing the application I am getting the... (2 Replies)
Discussion started by: poga
2 Replies

4. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

5. Solaris

How do I compile a 64-bit program on SPARC??

Hi, wcslen(), strlen() returns size_t. On 64-bit platform i want to use int like str length is 10. int len = wcslen(str); On 64-bit what should I need to do if i wants the length in int. Because getting error as "Conversion of 64 bit type value to "int" causes truncation". if i... (17 Replies)
Discussion started by: amit_27
17 Replies

6. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

7. Gentoo

compiling 32 bit application on 64 bit linux(x86_64)

hi all, i have a 64 bit linux machine. $uname -a Linux SVRDELLD30 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux here by default gcc creates 64 bit executable. but for some reason i want to create 32bit executable. first i want to create 32 bit object... (3 Replies)
Discussion started by: uttamhoode
3 Replies

8. Solaris

error: compile 64 bit mysql on Solaris 10

I'm trying to build 64 bit mysql-5.0.37 on Solaris 10. CFLAGS="-O3" CXX='gcc -m64 -mcpu=v9' CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure -disable-shared --prefix=/usr/local/mysql --datadir=/home1/mysql_data --with-mysqld-user=mysql ... (0 Replies)
Discussion started by: csross
0 Replies

9. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
Login or Register to Ask a Question