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

M

maadhuu

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.
 
B

benben

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
 
S

Souvik

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
 
O

osmium

and improperly attributed:
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.
 
J

Jonathan Mcdougall

osmium said:
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
 
S

Sensei

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top