By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

can you obtain the C++ source file from the machine code ?

P: n/a
hello,

i would want to know whether a person can obtain the source code of a c++
program , once he has only the executable with him. ????is that possible
?? as the m/c code is target machine dependent .i really want ot know the
answer to this question .so someone pleaaaaaaaaaaaaaase answer this .
thanx .
maadhuu.

Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
> i would want to know whether a person can obtain the source code of a c++
program , once he has only the executable with him. ????is that possible
?? as the m/c code is target machine dependent .i really want ot know the
answer to this question .so someone pleaaaaaaaaaaaaaase answer this .
thanx .
maadhuu.


And I would like to know whether a person can obtain the recipe of a dish,
once he has only the finished dish in a restaurant.

Regards,
Ben
Jul 23 '05 #2

P: n/a
Yes, de-compilers do that. However, the best de-compilers available
today do not seem to produce readable code, and that if they
successfully de-compile code.

But yes, there are such tools available on the market. They are hardly
effective though, and have several legal issues with them.

Reverse Engineering is tough job!

-Souvik
maadhuu wrote:
hello,

i would want to know whether a person can obtain the source code of a c++
program , once he has only the executable with him. ????is that possible
?? as the m/c code is target machine dependent .i really want ot know the
answer to this question .so someone pleaaaaaaaaaaaaaase answer this .
thanx .
maadhuu.


Jul 23 '05 #3

P: n/a
"Souvik" wrote and improperly attributed:
i would want to know whether a person can obtain the source code of a c++
program , once he has only the executable with him. ????is that possible
?? as the m/c code is target machine dependent .i really want ot know the
answer to this question .so someone pleaaaaaaaaaaaaaase answer this .
thanx .
maadhuu.

Yes, de-compilers do that. However, the best de-compilers available
today do not seem to produce readable code, and that if they
successfully de-compile code.

But yes, there are such tools available on the market. They are hardly
effective though, and have several legal issues with them.


He asked about the source code of a C++ program. There is no program which
will do what you claim. Despite the name, "de-compilers" do not de compile.
They produce a very ugly version of assembly language code.
Jul 23 '05 #4

P: n/a
osmium wrote:
He asked about the source code of a C++ program. There is no program which
will do what you claim. Despite the name, "de-compilers" do not de compile.
They produce a very ugly version of assembly language code.


Do beautiful versions of assembly language code really exist? :)
Jonathan

Jul 23 '05 #5

P: n/a
Do beautiful versions of assembly language code really exist? :)


Yes.

Ben
Jul 23 '05 #6

P: n/a
On 2005-07-16 01:36:51 -0500, "maadhuu" <ma************@yahoo.com> said:
hello,

i would want to know whether a person can obtain the source code of a c++
program , once he has only the executable with him. ????is that possible
?? as the m/c code is target machine dependent .i really want ot know the
answer to this question .so someone pleaaaaaaaaaaaaaase answer this .
thanx .
maadhuu.


Mathematically speaking, the compilation is *not* an isomorphism
between languages. It *cannot* exist any function that given a compiled
program (*) generates the corresponding original source code.

(*) Of course, you can cheat appending the original source code to the
binary, but it's not fair...

--
Sensei <se******@tin.it>

cd /pub
more beer

Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.