The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mac OS X 10.5: Using Time Machine and troubleshooting Time Machine issues iBot OS X Support RSS 0 10-13-2008 11:20 PM
How to execute a script hosted on a machine from a different machine harneetmakol Shell Programming and Scripting 2 08-11-2008 09:47 AM
Link type between working machine and server machine palash2k UNIX for Dummies Questions & Answers 1 05-22-2008 07:43 AM
Executing application on Windows from Unix machine MobileUser UNIX for Dummies Questions & Answers 3 07-12-2007 05:47 PM
help to compile wwwdev High Level Programming 2 08-29-2006 08:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-26-2008
Mandar123
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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
  #2 (permalink)  
Old 12-29-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
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
  #3 (permalink)  
Old 12-30-2008
Mandar123
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Thanks otheus.
  #4 (permalink)  
Old 01-06-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
I'd also add that a 64-bit x86 computer has no problems compiling and running 32-bit programs. Just gcc -m32.
  #5 (permalink)  
Old 01-06-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
Quote:
Originally Posted by Corona688 View Post
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 (permalink)  
Old 01-06-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
Quote:
Originally Posted by otheus View Post
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 (permalink)  
Old 01-07-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0