Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
CompSavy, he asked for a decompiler not compiler.
hafeez, there are no C/C++ decompilers. This is because all of the C and C++ compilers compile differently. Even if you tried making a decompiler for a specific compiler, you would have to make sure it wasn't linked with any extra lib files or any other 3rd party thing other than source.
There are disassemblers though. Every computer program, whether its on Mac, Windows, Linux, Unix, etc. all can be disassembled because assembly is what is actually sent to the processor. I'm guessing would want one for Windows as you are running Windows 98. Win32dasm is a very nice one, though not free. Just search for disassemblers. Just to let you know though, assembly is much different then the C/C++ high level language you are used to, especially if it was for a PowerPC. If you are determined or have the time then go ahead and learn assembly and disassemble whatever it is you want, though you'll never get the actual code.

"there are no C/C++ decompilers. This is because all of the C and C++ compilers compile differently."
No. There are C decompilers (C++ adds some stuff that makes the process harder).
Reverse engineering (a general term, here we mean looking at assembly code from a binary's execution) does not make perfect source copies. You can't make those from any reasonably complex program. The compiler throws a lot out, even without using many arguments and optimizations. But a lot of compilers and libraries are open source, so decompiling can be done fairly accurately (but, nobody has that kind of time, so it's always a hack job). Instead, just dump the assembly (with a debugger, which usually has a disassembler) and work through that. If you want, try decompiling that into C source, maybe with dcc or REC.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |