Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: X86 Assembler to PPC Assembler Conversion  (Read 1441 times)

0 Members and 1 Guest are viewing this topic.

Offline asian1

X86 Assembler to PPC Assembler Conversion
« 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?
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
  • Total likes: 0
    • http://www.troubled-mind.com
Re: X86 Assembler to PPC Assembler Conversion
« Reply #1 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).

Offline xeron

Re: X86 Assembler to PPC Assembler Conversion
« Reply #2 on: September 14, 2003, 06:59:20 PM »
Quote

(unless LinuxPPC is Little endien).


It is not.
Playstation Network ID: xeron6
 

Offline Karlos

Re: X86 Assembler to PPC Assembler Conversion
« Reply #3 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.
int p; // A
 

Offline Serpi

Re: X86 Assembler to PPC Assembler Conversion
« Reply #4 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