Page 1 of 1

compile ppc on intel

Posted: Mon Jul 11, 2011 6:16 am
by J. Baker
I didn't know you could compile ppc on an intel mac! I had read about rosetta but never thought much of it. Then tonight I figured I would try and see if the ppc version of PB would even do anything. To my surprise, not only was I able to compile/run, I could create the executable.

Maybe this is old news but I thought this was pretty cool. If you know about this already, do you know of any limitations?

Re: compile ppc on intel

Posted: Mon Jul 11, 2011 11:13 am
by dhouston
I'm relatively sure nobody here was aware of this as there have been a few threads bemoaning the fact that a PPC machine was needed to compile for that platform.

How about a few more details. Did you use Rosetta? That's implied but not entirely clear from your post.

Re: compile ppc on intel

Posted: Mon Jul 11, 2011 3:02 pm
by Fred
yes, it's possible as the shipped Apple gcc compiles for both ppc and intel. You can even build an universal binary with these 2 execs. Rosetta use is transparent. Please note than the new OS X 10.6 (Lion) will remove all the ppc support on intel mac.

Re: compile ppc on intel

Posted: Mon Jul 11, 2011 6:37 pm
by J. Baker
Fred wrote:yes, it's possible as the shipped Apple gcc compiles for both ppc and intel. You can even build an universal binary with these 2 execs. Rosetta use is transparent. Please note than the new OS X 10.6 (Lion) will remove all the ppc support on intel mac.
That's the sad thing about Lion. Some people will not only loose some of their apps if they upgrade but even hardware if they only have ppc drivers. I really don't think they need to drop ppc support but I'm sure it's a marketing technique. Anyway, I may hold on to 10.6 a little longer.

Re: compile ppc on intel

Posted: Tue Jul 12, 2011 12:26 pm
by dhouston
Fred wrote:Please note than the new OS X 10.6 (Lion) will remove all the ppc support on intel mac.
Do you mean OS X 10.7 (Lion) will remove ppc support?

Re: compile ppc on intel

Posted: Tue Jul 12, 2011 12:36 pm
by Polo
dhouston wrote:
Fred wrote:Please note than the new OS X 10.6 (Lion) will remove all the ppc support on intel mac.
Do you mean OS X 10.7 (Lion) will remove ppc support?
Yes that's what he means :)

Re: compile ppc on intel

Posted: Mon Aug 22, 2011 6:21 am
by singo
Fred said
You can even build an universal binary with these 2 execs
I am currently compiling separate execs for each processor (using PB for Intel & PB for PPC on the same Mac).

Can you please explain how to build a universal binary ? :?:

Re: compile ppc on intel

Posted: Mon Aug 22, 2011 9:01 am
by Fred

Re: compile ppc on intel

Posted: Mon Aug 22, 2011 1:14 pm
by singo
Thanks Fred, should have looked harder, thought it was something I was missing in PB