Hi all,
Using a compiler we can translate source code in to machine code. As an example in Java we can translate source code in to machine code using compiler called javac.
Is there any way to translate machine code into source code?
Printable View
Hi all,
Using a compiler we can translate source code in to machine code. As an example in Java we can translate source code in to machine code using compiler called javac.
Is there any way to translate machine code into source code?
It depends on the language and the compiler. For VB6 it is not possible, and for others it is dubious at best.
See the article about it in our Classic VB FAQ (link in my signature) for a fuller explanation.
Thanks si_the_geek.
Do you know any such compiler for Java.
They're called decompilers. Since during compilation, quite a bit of information is lost, and since source->bytecode is not a 1:1 mapping, they can only ever guess at what the original code was.
With this information, you could Google for it.
Why didn't you post this in the Java forum, when it's apparently about Java?
Quote:
Originally Posted by CornedBee
Ya, it's true. This should post in Java forum. I used that javac compiler here just as an example.
Anyway thanks for your advice.