有没有任何强大的程序可以..... [英] is there any powerful program that can.....

查看:60
本文介绍了有没有任何强大的程序可以.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下,当我只有可执行文件(* .exe)时,是否有任何程序可以给我源文件

(* .cpp)?


非常感谢〜

解决方案

news.hku.hk< bi ****** @ hkusua.hku.hk>潦草地写道:

当我只有可执行文件(*时)时,我想问是否有任何程序可以给我源文件
(* .cpp)。 exe)?




这类程序被称为反编译器,但它们并不完美。因为编译是一个有损的过程,因此反编译器不可能给你返回与

原文相同的源代码。

例如,所有

注释,格式化以及通常所有本地变量名称都将丢失。这个

被称为牛奶汉堡。问题。


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)------- ------芬兰-------- \

\-- http://www.helsinki.fi/~palaste ---------------------规则! -------- /

糟糕的事情只发生在恶棍身上。

- Moominmamma


Joona I Palaste写道:

news.hku.hk< bi ****** @ hkusua.hku.hk>潦草地写道:

我想问一下,当我只有可执行文件(*时)是否有任何程序可以给我源文件(* .cpp)。 exe)?



这些程序被称为反编译器,但它们并不完美。反编译器无法为您提供与原始源代码相同的源代码,因为编译是一个有损耗的过程。例如,所有
评论,格式化以及通常所有本地变量名称都将丢失。
这被称为汉堡牛。问题。




不要忘记已执行的任何优化:)


如果所有符号都被剥离(例如本地功能是静态的,这一切都变得更糟。


祝你好运,


Martijn
http://www.sereneconcepts.nl


" news.hku.hk" <双****** @ hkusua.hku.hk>写道:

当我只有可执行文件时,我想问是否有任何程序可以给我源文件
(* .cpp) * .exe)?




对我来说gdb通常可以很好地找到我的源文件,因为

,因为我还没有自从我编译以来移动或删除它们。

-

C有它的问题,但是从头开始设计的语言也会有一些,

我们知道C'的问题。

--Barne Stroustrup


I''d like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?

Thanks a lot~

解决方案

news.hku.hk <bi******@hkusua.hku.hk> scribbled the following:

I''d like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?



Such programs are known as decompilers, but they''re not perfect. It is
impossible for a decompiler to give you back the same source code as the
original, because compiling is a lossy process. For example, all
comments, formatting and usually all local variable names are lost. This
is known as the "hamburger to cow" problem.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Bad things only happen to scoundrels."
- Moominmamma


Joona I Palaste wrote:

news.hku.hk <bi******@hkusua.hku.hk> scribbled the following:

I''d like to ask if there is any program that can give me the source
file (*.cpp) when i only have the executable file (*.exe) ?



Such programs are known as decompilers, but they''re not perfect. It is
impossible for a decompiler to give you back the same source code as
the original, because compiling is a lossy process. For example, all
comments, formatting and usually all local variable names are lost.
This is known as the "hamburger to cow" problem.



Not to forget about any optimizations that have been performed :)

And if all symbols have been stripped (such as "local" functions being
static), all gets even worse.

Good luck,

Martijn
http://www.sereneconcepts.nl


"news.hku.hk" <bi******@hkusua.hku.hk> writes:

I''d like to ask if there is any program that can give me the source file
(*.cpp) when i only have the executable file (*.exe) ?



For me gdb usually does just fine at finding my source files, as
long as I haven''t moved or deleted them since I compiled.
--
"C has its problems, but a language designed from scratch would have some too,
and we know C''s problems."
--Bjarne Stroustrup


这篇关于有没有任何强大的程序可以.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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