Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert ARM instruction to i386 instruction

Is there any ARM instruction to i386 instruction Converter available?

like image 652
SamSol Avatar asked May 28 '10 09:05

SamSol


3 Answers

You can use QEMU to emulate ARM instructions on x86.

like image 155
tgiphil Avatar answered Nov 19 '22 14:11

tgiphil


You could reverse-engineer the ARM code to C, and then simply compile the C code. This company actually produces pretty good code C code from assembler. (I've never used their product, but I am familiar with the research behind that company).

like image 28
Ira Baxter Avatar answered Nov 19 '22 12:11

Ira Baxter


Emulation or static binary translation are the paths I would take, each has its pros and cons.

You need to be more clear about what you are asking. The simple translation of one instruction set to another is one thing, the harder part of making the result useful is what you are addressing. Your ARM's memory and register space will not match the X86, so a straight instruction to instruction (emulated or sbt) will not be enough, you have to add code to replace many of the loads and stores with something that checks the address, determines what it was addressing, and emulate that peripheral (emulated or sbt).

like image 1
old_timer Avatar answered Nov 19 '22 12:11

old_timer