For example, the arm directive "LDR PC, [pc, -#4]" on the x86 corresponding instructions should be how to write? Seeking method
Asked
Active
Viewed 113 times
0
-
Your question is way too broad. It is almost like 'how to write code?'. There maybe multiple ways to translate one instruction. Also, there may be no equivalent. Most importantly, groups of instructions will have a translation that is more efficient (and direct). – artless noise Mar 28 '17 at 13:21
-
are you trying to convert a whole program? Google static binary translation. It is a lot of work, but possible, far better to translate to C then let the compiler remove the dead code than from one instruction set to another. Runtime instruction set simulation is an alternative, or even better just re-compile the source to the different target. – old_timer Mar 28 '17 at 13:58