|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (6 bit)
|
viewing C source
how do i view a particular .exe file's source codes. what program do i need?
im using turbo c++ and djgpp. can both of these programs extract the C source?? |
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Hi prez,
In order to view the source of EXE files you would need to de-compile it, which is a very complicated procedure, and the program may not have even been written in C. Once it has been compiled, it's impossible to get the original source files back. |
|
|
|
|
|
#3 |
|
Member (6 bit)
|
i know that the exe file is written in C. So whats the precedure to de compile it??
|
|
|
|
|
|
#4 |
|
Member (10 bit)
|
There's been rumors that there are a few C/C++ decompilers out there, but I've never actually seen any or known someone who has. Also, if you think about the structure of a compiled C program it seems almost impossible to decompile it.
|
|
|
|
|
|
#5 |
|
Professional gadfly
|
Decompiling a program is next to impossible. There are infinite ways to write a program to do any one particular thing; even something as simple as a "Hello, world!" program. Trying to figure out which one of those infinite varieties you have with the executable is extremely difficult.
|
|
|
|
|
|
#6 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
I've used some "C++ decompilers", but they give horrid results.
Most of the things we take for granted, like meaningful variable names and comments are gone. Classes and objects sometimes almost look OK, but then you get things like: class c032468765 { private: int i098754309; float f664590954; public: void F4287983932(int i35436, int i654927); }; Personally, I find it easier to disassemble and work with it in assembly. |
|
|
|
|
|
#7 |
|
Banned
Join Date: Jul 2002
Posts: 257
|
Paul you got any tips for me im trying ro learn assembly?
|
|
|
|
|
|
#8 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
Best tip is start out not by reading others' stuff, but by working with examples and writing them yourself. A good book can be worth a thousand hours without.
Assembly languages tend to be easier to write than to read (unlike many higher-level languages). It's often easier to figure out how to do something than it is to figure out what someone was trying to do, because almost every task takes a lot of commands to complete, as the commands are pretty basic. So, get a good assembler, a good book, and try out the examples. Comment your source files very well, because if you don't, it's hard to figure out what you were doing, at times. |
|
|
|
|
|
#9 |
|
Banned
Join Date: Jul 2002
Posts: 257
|
I am using MASM as I assembler could you recommend a book?
|
|
|
|
|
|
#10 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
MASM's a good assembler... man, it's been so long (probably about 10 years) since I purchased books on assembly, though, I can't even make a recommendation.
You can check out Amazon.com, they have a section for assembly language, you can ty to use their reviews to help you. |
|
|
|
|
|
#11 |
|
Banned
Join Date: Jul 2002
Posts: 257
|
Ok Thanks Paul
I would ask for a website but it's been ten years so you probably dont know any them either?Thanks Again
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|