Welcome, Guest. Please login or register.

Author Topic: X86 Assembler to PPC Assembler Conversion  (Read 3143 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline asian1Topic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1359
    • Show only replies by 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
    • Show only replies by bloodline
    • 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

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
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

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by 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

  • Newbie
  • *
  • Join Date: Apr 2003
  • Posts: 17
    • Show only replies by 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