compile ppc on intel

Mac OSX specific forum
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

compile ppc on intel

Post 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?
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: compile ppc on intel

Post 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.
http://davehouston.org
Mac Mini (Intel) 10.6.8 - iMac G4 (PPC) 10.4.11
Dell Dimension 2400 W98SE,W2K,XP,Vista,W7,Debian,Ubuntu,Kubuntu,Xubuntu,Fedora,Mandriva,Mint
(on swappable HDDs)
Vizio VTAB1008 - Android 3.1
MK808 miniAndroidPC (Android 4.1)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: compile ppc on intel

Post 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.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: compile ppc on intel

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Re: compile ppc on intel

Post 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?
http://davehouston.org
Mac Mini (Intel) 10.6.8 - iMac G4 (PPC) 10.4.11
Dell Dimension 2400 W98SE,W2K,XP,Vista,W7,Debian,Ubuntu,Kubuntu,Xubuntu,Fedora,Mandriva,Mint
(on swappable HDDs)
Vizio VTAB1008 - Android 3.1
MK808 miniAndroidPC (Android 4.1)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: compile ppc on intel

Post 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 :)
User avatar
singo
User
User
Posts: 35
Joined: Mon Apr 23, 2007 4:50 am
Location: Nabiac NSW Australia

Re: compile ppc on intel

Post 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 ? :?:
Singo
Win10, Win7, Debian x86 & OSX ~ PB 5.70 LTS
Minimbah NSW Australia
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: compile ppc on intel

Post by Fred »

User avatar
singo
User
User
Posts: 35
Joined: Mon Apr 23, 2007 4:50 am
Location: Nabiac NSW Australia

Re: compile ppc on intel

Post by singo »

Thanks Fred, should have looked harder, thought it was something I was missing in PB
Singo
Win10, Win7, Debian x86 & OSX ~ PB 5.70 LTS
Minimbah NSW Australia
Post Reply