将ASM转换为C. [英] Converting ASM to C

查看:352
本文介绍了将ASM转换为C.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法做到这一点。我的意思是有一家公司将asm转换为他们的wsl语言,然后从那个到c,我们可以用这种方式来做这个吗?

这个?

Is there a way to do this. I mean there is a company who converts asm to
their wsl language and then from that to c is there a way that we can do
this?

推荐答案

Glen Richards写道:
Glen Richards wrote:
有没有办法做到这一点。我的意思是,是否有一家公司将asm转换为他们的wsl语言,然后从那个转换为c?


No.

有没有办法可以做到这一点?
Is there a way to do this. I mean, is there a company
who converts asm to their wsl language and then from that to c?
No.
Is there a way that we can do this?




No.


信息在此过程中被丢弃

为汇编程序编译更高级别的语言

无法单独从汇编程序中恢复。



No.

Information is discarded in the process
of compiling a higher level language to assembler
that cannot be recovered from the assembler alone.


E. Robert Tisdale写道:
E. Robert Tisdale wrote:
Glen Richards写道:
Glen Richards wrote:
有没有办法做到这一点。我的意思是,是否有公司将asm
转换为他们的wsl语言然后从那个转换为c?
Is there a way to do this. I mean, is there a company who converts asm
to their wsl language and then from that to c?






No.

有没有办法可以做到这一点?
Is there a way that we can do this?



没有。

在编译更高级语言的过程中,信息被丢弃了汇编程序
无法单独从汇编程序中恢复。



No.

Information is discarded in the process
of compiling a higher level language to assembler
that cannot be recovered from the assembler alone.




好​​的,这是偏离主题的,但我不相信不可能性< b / b
索赔。肯定不可能的是检索_particular_ C

代码,当通过某些(未知)编译器运行时,生成给定的机器代码的b / b $ b $。但是考虑到asm,原则上不应该可以生成(非唯一的)具有同等效果的C代码吗?

是否有人提供此类服务商业上,我有

不知道。


-

Allin Cottrell

经济系

维克森林大学,NC



OK, this is off-topic here, but I''m not convinced by the impossibility
claim. What is surely impossible is to retrieve the _particular_ C
code that, when run through some (unknown) compiler, generated a given
glob of machine code. But given the asm, shouldn''t it be possible
in principle to generate (non-unique) C code of equivalent effect?
Whether anyone provides this sort of service commercially, I have
no idea.

--
Allin Cottrell
Department of Economics
Wake Forest University, NC


Allin Cottrell写道:
Allin Cottrell wrote:
好的,这是关闭的 - 这里的主题
但是我不相信不可能的主张。
在检测_particular_ C代码时,肯定是不可能的,当通过某些(未知的)编译器运行时,
生成了给定的机器代码。
但是给定汇编程序,原则上不可能生成具有同等效果的(非唯一的)C代码吗?


一般来说,没有。您将不得不模仿机器架构和操作系统(OS)。

您需要能够识别对操作系统的呼叫
$例如,b $ b用于I / O.换句话说,除了汇编列表中剩下的内容之外,你还需要关于程序的信息



来解决所有这些引用。

是否任何人都提供这种商业服务,
我不知道。
OK, this is off-topic here
but I''m not convinced by the impossibility claim.
What is surely impossible is to retrieve the _particular_ C code
that, when run through some (unknown) compiler,
generated a given glob of machine code.
But given the assembler, shouldn''t it be possible, in principle,
to generate (non-unique) C code of equivalent effect?
In general, no. You would be obliged to emulate
the machine architecture and the operating system (OS).
You would need to be able to recognize calls to the OS
for I/O for example. In other words, you would need information
about the program besides what remains in the assembler listing
to resolve all of these references.
Whether anyone provides this sort of service commercially,
I have no idea.




KBG,CIA,NSA中有(或至少有)人

可以做一个相当合理的逆向工程工作

机器代码(汇编程序)。



There are (or at least were) people in the KBG, CIA, NSA, etc.
that could do a fairly reasonable job of "reverse engineering"
machine codes (assembler).


这篇关于将ASM转换为C.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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