Computing.Net > Forums > Programming > C/C++ disassembling - decompilation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C/C++ disassembling - decompilation

Reply to Message Icon

Name: new++
Date: November 23, 2002 at 03:07:22 Pacific
OS: Win2000
CPU/Ram: PIII 550Mhz / 392 SDRAM
Comment:

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"



Sponsored Link
Ads by Google

Response Number 1
Name: bitbyte
Date: November 23, 2002 at 09:00:31 Pacific
Reply:

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


0

Response Number 2
Name: Jeff Graver
Date: November 25, 2002 at 11:30:37 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C/C++ disassembling - decompilation

C/C++ decompiler www.computing.net/answers/programming/cc-decompiler/8503.html

Covert .ojb or .exe back to .c www.computing.net/answers/programming/covert-ojb-or-exe-back-to-c/4437.html

How can I grap c all text in every single lin www.computing.net/answers/programming/how-can-i-grap-c-all-text-in-every-single-lin/19692.html