Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can GCC generate x86?

Can GCC generate x86?
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 23, 2003, 05:18 PM
 
Can the GCC which comes with Mac OS X generate a Linux executable? I am trying to build a simple C-library program and I don't have a compiler available for Linux.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 23, 2003, 07:43 PM
 
No.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 23, 2003, 07:50 PM
 
Got to thinking about my previous answer and decided it sucked.

You CAN build elf binaries for Linux x86, but you'll need to build a cross complier, binutils, and any libraries you might link against.

A Google search for "gcc cross compiler" should get you started.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 23, 2003, 07:56 PM
 
After you've decided that building a toolchain for cross compiling is a PITA, you might consider SourceForge's compile farm.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 23, 2003, 08:19 PM
 
Originally posted by int69h:
After you've decided that building a toolchain for cross compiling is a PITA, you might consider SourceForge's compile farm.
If you feel like going open-source....
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 23, 2003, 08:41 PM
 
You might consider Compaq/HP Test Drive as well. I don't believe it's as restrictive as sourceforge.
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Jan 24, 2003, 09:29 AM
 
Originally posted by absmiths:
Can the GCC which comes with Mac OS X generate a Linux executable? I am trying to build a simple C-library program and I don't have a compiler available for Linux.
Doesn't Linux come with compilers preinstalled?
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 24, 2003, 09:59 AM
 
Originally posted by hayesk:
Doesn't Linux come with compilers preinstalled?
Yes it does, but the systems we are building for our clients have everything stripped off.

I am also sorta looking to build the Apple mDNS Responder as I need rendezvous on Windows, even though I realize that gcc can't build windows executables without all the headers. Does anybody have a build of the Apple open-source rendezvous stuff for Windows that they could make available? Can SourceForge build Windows executables? I seriously doubt that I could upload Apple's source there for compiling - or could I?

EDIT: Nevermind - SourceForge doesn't build Windows executables.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2