Source Code and Machine Code
4 answers - 251 bytes -

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?
No.1 | | 216 bytes |
| 
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.
No.2 | | 69 bytes |
| 
Thanks si_the_geek.
Do you know any such compiler for Java.
No.3 | | 355 bytes |
| 
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?
No.4 | | 509 bytes |
| 
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?
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.