本文介绍了将 ARM 汇编反编译回 C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前我写了一个很好的 ARM 汇编程序,多年来它在它设计的 ARM 嵌入式系统上完美地完成了它的工作.现在,是时候将它移植到非 ARM 系统上了,我想知道是否有工具或某种方法可以获取我的原始 ARM 汇编程序源并从中获取基本的 C 文件.我可能会在几天内自己完成,但最好有一个起点.如果应用程序或方法是免费的,那就更好了:)

I wrote a nice ARM assembler routine a few years back and it has done its job beautifully over the years on the ARM embedded systems it was designed for. Now, the time has come to port it on to non-ARM systems and I was wondering if there was tool or some sort of method to take my original ARM assembler source and get a rudimentory C file from it. I could probably do it myself in a couple of days, but it would be nice to have a starting point. Nicer still if the app or method was free :)

有什么建议吗?

推荐答案

不幸的是我不知道这样的工具......会很好......;)

I don't know such a tool unfortunately... Would be nice... ; )

所以我能给出的唯一建议就是专注于逻辑.

So the only suggestion I can give is to concentrate on the logic.

您编写了汇编代码.所以你知道编码应该做什么.即使使用 ARM 汇编,将其转换为 C 代码也不应该那么难.

You wrote assembly code. So you know what to code is supposed to do. Converting it to C code shouldn't be that hard, even with ARM assembly.

我的意思是将 C 移植到 ARM 汇编可能是一项艰巨的任务.但是对于反向选项,如果你知道代码逻辑,如果你知道怎么写C,应该就可以了...

I mean porting C to ARM assembly can be a difficult task. But for the reverse option, if you know the code logic, and if you know how to write C, it should be just ok...

创建 C 结构以简化您正在使用的内存区域.关于算法,它们不会改变.只需在一些结构体等的帮助下,将你正在做的从汇编语言转换为 C 语言......

Creates C structures to ease the memory regions you are working with. About the algorithms, they won't change. Just translate what you are doing from assembly to C, with the help of some structs, etc...

对不起,我可以给你这样的工具...

Sorry I can give you such a tool...

祝你好运:)

这篇关于将 ARM 汇编反编译回 C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 05:35
查看更多