TidBITS
TidBITS
TidBITS Talk 
Cross Compiling with Intel
nick170 (apparently)
- 04:35am Jun 24, 2005 PSTvia email - http://www.inmff.netAt 2:47 PM -0700 6/14/05, Christopher Smith wrote:
>I think there is a bit of a chicken and egg problem here. There is no
>question there is going to be some effort here, but there is certainly
>enough time for anyone to port their code from OS X PPC to OS X x86,
>provided they make enough effort.
I get the impression that we have cross compiling from Intel to PPC
(for universal binaries, etc.) But has Apple announced the other way
around? (Cross compile from PPC to Intel.) The major issue I see
with smaller developers coming around is the cost outlay. The
processor level emulation will keep us going for a while, but I'm not
quite sure how long that will be viable.
Nick
<
http://db.tidbits.com/getbits.acgi?tbart=08125>
Mark as Read
x
-
Jun 24, 2005 4:43 am
(#1 Total: 4)
|
 |
|
|
 |
| Posts: 70 |
Re: Cross Compiling with Intel
Nicholas Barnard wrote: At 2:47 PM -0700 6/14/05, Christopher Smith wrote: > I think there is a bit of a chicken and egg problem here. There is no > question there is going to be some effort here, but there is certainly > enough time for anyone to port their code from OS X PPC to OS X x86, > provided they make enough effort. I get the impression that we have cross compiling from Intel to PPC (for universal binaries, etc.) But has Apple announced the other way around? (Cross compile from PPC to Intel.) The major issue I see with smaller developers coming around is the cost outlay. The processor level emulation will keep us going for a while, but I'm not quite sure how long that will be viable. I haven't investigated Apple's specific work in this area yet, but I am
very familiar with how gcc (the open source compiler included in Xcode)
works. One of the nice things about gcc is the way the back end support
is fully modular and cross-platform. So, I can have an intel compiler
that generates PPC, x86, StrongArm, MIPS, Alpha, Sparc, etc. binaries.
If you can't get Apple to do what you want with their compiler, grab the
source code and take a look at this page: http://www.kegel.com/crosstool/ Dan Kegel has had to support all kinds of funny cross compiler setups,
so he put together this page explaining all the tricks and gotchas. --Chris
|
|
 |  |
Paul Durrant (apparently)
-
Jun 27, 2005 4:50 pm
(#2 Total: 4)
|
 |
|
|
via email - Durrant Software Limited |
|
|
 |
| Posts: 21 |
Re: Cross Compiling with Intel
At 5:35 am -0700 24/6/05, Nicholas Barnard wrote:
>I get the impression that we have cross compiling from Intel to PPC
>(for universal binaries, etc.) But has Apple announced the other way
>around? (Cross compile from PPC to Intel.)
XCode 2.1 runs on PPC and cross-compiles to x86 and also produces
'universal' binaries that include PPC and x86 code.
--
Paul Durrant
82 Earlham Road, Norwich, Norfolk, NR2 3HA.
Telephone: 01603 763332
|
|
 |  |
kevinv (apparently)
-
Jun 27, 2005 4:50 pm
(#3 Total: 4)
|
 |
|
|
 |
| Posts: 1408 |
Re: Cross Compiling with Intel
Apple announced XCode 2.1 will produce Universal Binaries. XCode 2.1 is
available for Mac OS X PPC now and can produce Intel and PPC binaries.
XCode 2.1 is available for free, although you do need to create a developer
login to get it. It's a 750 MB download.
< http://developer.apple.com/>
Additionally Apple has released preliminary documentation on what it takes
to build universal binaries.
< http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/index.html>
According to that documentation XCode will build by default for the
architecture it's running on, but adding architectures is just a matter of
checking a box.
You can also do interesting things like produce code that will run on 10.3
(or greater) PPC and 10.4 Intel.
Kevin
|
|
 |  |
Ian Bridges
-
Jun 29, 2005 7:31 am
(#4 Total: 4)
|
 |
|
|
 |
| Posts: 1 |
Re: Cross Compiling with Intel
You can complile both PPC & Intel binaries from PPC now. Once Mac-Intel machines are available, they would ship with XCode, so you could compile both PPC & Intel binaries on them too. If you are a Mac developer now, your main cost is learning XCode if you are not already using it. If you are a PC developer wanting to try some Mac programming you will need to get a Mac (either PPC or Intel) as Apple appear to have no plans at this stage to release OSX for generic PC boxes. Considering that one of Apple's key advantages is the tight integration between hardware & software, don't expect that to change any time soon.
|
|
|
TidBITS
TidBITS
TidBITS Talk
Cross Compiling with Intel