Is there a way to take a executable file, and turn it into source code you can read and edit?
I looked on my compiler options, and it has nothing like this it seems.
Printable View
Is there a way to take a executable file, and turn it into source code you can read and edit?
I looked on my compiler options, and it has nothing like this it seems.
Not that I know of. Otherwise people could break down games and steal source.
There are programs that do this. Badly.Quote:
Originally posted by OmnipotentCow
Is there a way to take a executable file, and turn it into source code you can read and edit?
I looked on my compiler options, and it has nothing like this it seems.
Think of it as trying to "unbake a cake".
Ya, now that i really think about it, it's pretty much the same as pirating software or what not.
Oh well, just a thought i had when reading through this book.
Yes and no. Most programs come with data files that have graphics and what not that would be shipped with the executable. So while with most programes, if you could decompile them accurately and get the source code, you still wouldn't have all of the needed data to get a working program (as you would if you "pirated" it).Quote:
Originally posted by OmnipotentCow
Ya, now that i really think about it, it's pretty much the same as pirating software or what not.
But I admit it would be handy, fun even, to have the source to a few programs to tweak them or just to see how they did things.
Quzah.
Isn't that what disassemblers are for? :)Quote:
Originally posted by quzah
But I admit it would be handy, fun even, to have the source to a few programs to tweak them or just to see how they did things.
yeah disassemblers output assembly instructions which are different for each system and not the easiest thing to read.
i think there is a program that takes that assembly code, and translates it to c/c++... badly :)
code warrior can do it I think.
check this file it has a prog to do what u asked for:cool:
put the contents of e2c1.zip & e2c2.zip in a folder and run the program:)