0

recently, i want to analyze some library which in android. but arm assembler is hardly to understand,so i want to use llvm to implement a disassembler i find a document about this topic at here:http://llvm.org/docs/MarkedUpDisassembly.html#instruction-annotations and a cpp file at here http://llvm.org/docs/doxygen/html/ARMDisassembler_8cpp_source.html and then use some rules to translate assembler code to c code.

4

1 回答 1

1

LLVM 中没有任何内容可以帮助您将程序集转换为 C 代码。LLVM 提供的反汇编功能可以将其支持的目标的机器代码(二进制文件)反汇编成汇编。

此外,如果您发现程序集难以理解,我应该说您可能不会理解生成的 C 代码。由反编译工具(将汇编转换为 C 的常用名称)创建的 C 代码可读性不强,无论如何您必须对汇编语言有很强的了解才能理解它。

于 2013-04-24T15:57:18.273 回答