Amiga.org

Operating System Specific Discussions => Linux PPC discussion => Topic started by: asian1 on September 14, 2003, 06:04:18 PM

Title: X86 Assembler to PPC Assembler Conversion
Post by: asian1 on September 14, 2003, 06:04:18 PM
Hello
The vendor/author of several closed source
Linux X86 applications had refused to port
their software/applications to PowerPC.
If someone use dis-assembler tools, and
obtain X86 assembler code version of the
application, is it possible to convert
the X86 assembler code to PowerPC assembler
automatically?
Title: Re: X86 Assembler to PPC Assembler Conversion
Post by: bloodline on September 14, 2003, 06:10:56 PM
The LinuxPPC and Linux x86 use different ABI's (since they have very different Register counts, by a factor of 4!) so no.

-EDIT-
a x86 JIT might work... but you would still have the Endieness problem (unless LinuxPPC is Little endien).
Title: Re: X86 Assembler to PPC Assembler Conversion
Post by: xeron on September 14, 2003, 06:59:20 PM
Quote

(unless LinuxPPC is Little endien).


It is not.
Title: Re: X86 Assembler to PPC Assembler Conversion
Post by: Karlos on September 14, 2003, 07:02:55 PM
Endian issues dont hurt PPC that much (at the assebmler level) since there are byteswapping load/store instructions available.
Title: Re: X86 Assembler to PPC Assembler Conversion
Post by: Serpi on September 15, 2003, 03:00:35 PM
Quote
is it possible to convert  the X86 assembler code to PowerPC assembler  automatically?

I have seen somewhere on the homepage of a company a product that should be able to do this (at least, it tries to do this) but it was for the price of some thousands of dollars (there was also cenversion from/to alpha, x86, ppc, 680x0).

Ciao, Alfred