getting started with PowerPC

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: getting started with PowerPC

Post by iansjack »

feare56 wrote:Ok, I was doing research on what language I could use and I noticed that NASM works with intel and PowerPC. So for those of you who are using NASM and are looking to expand the architectures their OS is supported on you won't have to learn a different assembly language.
You are mistaken. NASM only produces x86 or x86_64 code and will not produce code that will run on a PowerPC. If it did you would still need to learn PowerPC assembly language, which is very different from the x86 varieties.

Don't try and avoid the learning process; look upon it as an opportunity to expand your horizons.
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: getting started with PowerPC

Post by iansjack »

bwat wrote:
feare56 wrote:The only simulator/emulator I've used was very expensive and chosen by the client. I've forgotten the name of it. Before that came along we tested on real hardware.
Qemu supports PPC emulation, but how closely it can emulate any particular Mac I don't know.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: getting started with PowerPC

Post by Brynet-Inc »

feare56 wrote:Ok, I was doing research on what language I could use and I noticed that NASM works with intel and PowerPC. So for those of you who are using NASM and are looking to expand the architectures their OS is supported on you won't have to learn a different assembly language.
No.

NASM is an x86 assembler written in C. The assembler itself can run on almost any architecture, but not the binaries it produces.

EDIT: Whoops, iansjack got here first.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
feare56
Member
Member
Posts: 97
Joined: Sun Dec 23, 2012 5:48 pm

Re: getting started with PowerPC

Post by feare56 »

Brynet-Inc wrote:
feare56 wrote:Ok, I was doing research on what language I could use and I noticed that NASM works with intel and PowerPC. So for those of you who are using NASM and are looking to expand the architectures their OS is supported on you won't have to learn a different assembly language.
No.

NASM is an x86 assembler written in C. The assembler itself can run on almost any architecture, but not the binaries it produces.

EDIT: Whoops, iansjack got here first.
Oh, I read that wrong then. So I will continue doing more research and learn the proper assembly language. I saw that qemu has PPC emulation but is it actually supported on the platform?
feare56
Member
Member
Posts: 97
Joined: Sun Dec 23, 2012 5:48 pm

Re: getting started with PowerPC

Post by feare56 »

I finally got around to doing some research and found some free ebooks if any of you are interested in supporting PPC in your operating system http://www.ibm.com/developerworks/syste ... de-v2.html
Post Reply