反编译的ARM汇编回至C [英] Decompiling an ARM asm back to C

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

问题描述

我写了一个不错的ARM汇编程序几年前,它已在ARM的嵌入式系统它是专为多年精美完成其工作。现在,时间已经到了港口它非ARM的系统,我想知道是否有工具或某种方法把我原来的ARM汇编源代码,并从中获得rudimentory 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.

您写的组装code。所以,你知道该怎么code是应该做的。将其转换为C code应该不会那么难,甚至与ARM汇编。

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至臂组件可以是一个艰巨的任务。但是对于逆向选择,如果你知道code的逻辑,如果你知道如何编写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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆