Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i am new in C/C++.i downloaded the DJGPP compiler yesterday and i made my first 2 simple progz.i want to know what i have to download and use in case that i want DECOMPILE *.exe files (such as mirc.exe) so i can view and modify the source for my own personal use.i dont want HEX editors i want to view the source in c/c++.i also want to ask,what is the difference between "decompilation" and "disassembling"

decompilation: creates the sourcecode from a compiled program back to C or another language
dissasembling: creates a source code from the compiled program to assembler
dissasembling is with every program possible because compiling a programm converts the source code to machinecode instructions
for every macghinecode instruction exists a assembler command -> dissasemblig is every time possible (but often confusing humans)for discompiling you often need a map file with a lot of compiling infos from the program

To put that another way, in order to see the C/C++ source, you have to HAVE the C/C++ source. If you HAVE the C/C++ source, then you don't need the decompiler.
There are two interesting implications for you, I think. First, if you want examples of how programs are written, look to the Open Source community (see, for example, www.sourceforge.net). Second, if you are trying to figure out why a particular section of code behaves the way it does, and you have the source, run it under the control of a source-level debugger so that you can trace the effects of the code on each individual variable.
Jeff

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

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