Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Jose on April 17, 2004, 04:01:50 AM

Title: 68k to PPC code translators/compilers
Post by: Jose on April 17, 2004, 04:01:50 AM
I found some68k to PPC compilers or translators.Doing a search on Google returns a few hits. Some claim to generate good and efficient code.
But the ones I read about weren't for the Amiga.

Wouldn't that be usefull for the current situation in the Amiga? Is there one already?

A cool one I found was HERE (http://www.microapl.co.uk/Porting/index.html)
Check the PPC version that uses 68k source code.

Offtopic, but I also surprisingly accidentaly found an Amiga port of some 68k compiler listed on Motorola's site by the way...
Title: Re: 68k to PPC code translators/compilers
Post by: Johan Samuelsson on April 17, 2004, 12:41:15 PM
PPC68X0 by Coyote Flux is the thing you are looking for I guess. Dont know how advanced it is yet though,
and I dont know if "PPC68X0" is the exact name, my memory is a bit blurry these days.. :)
Title: Re: 68k to PPC code translators/compilers
Post by: Jose on April 17, 2004, 07:54:17 PM
Wow! That software rocks! :-o Hope it's continued to future PPC OSes.

Anyone used it?
Title: Re: 68k to PPC code translators/compilers
Post by: Piru on April 17, 2004, 08:29:43 PM
Converting m68k asm to PPC asm is generally not worth the effort. The resulting code will be slow, ugly and impossible to maintain.

You're far better off by rewriting the code in C and let C compiler worry about PPC code generation.
Title: Re: 68k to PPC code translators/compilers
Post by: Jose on April 18, 2004, 10:13:54 PM
"..code will be slow, ugly and impossible to maintain"

Well, that's the opposite of what they claim :lol:
Still, maybe it's usefull to have huge assembler sources running, till there's some other port (if it's made at all).
Title: Re: 68k to PPC code translators/compilers
Post by: Karlos on April 22, 2004, 02:12:13 AM
When C and C++ introduce unsigned shifts and rotate operators, I'll be a happy man.

Until then, there are certian things I will always do in assembler and keep a seperate C version for compatibility.