What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C++ Decompiler

Pages: (2): « First [ 1 ] 2 » Last »
C++ Decompiler
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. Undecided  C++ Decompiler
has any one heard of a C++ decompiler, if so where can I get it form?
[Image: top.gif]
07-25-2004 04:46 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: C++ Decompiler
I haven't, and I don't think you can get one either.
[Image: spartaafk.png]
07-25-2004 05:05 PM
Profile PM Web Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: C++ Decompiler
once you compile a program it's nearly impossible to have the source code again. The most you can have is the assembly code. Windasm and Ollybdg (<- or similar name) are 2 disassemblers. You can try them, but you don't get the C++ code, only asm.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-25-2004 05:36 PM
Profile PM Find Quote Report
aNILEator
Skinning Contest Winner
*****

Avatar
...in the wake of the aNILEator

Posts: 3718
Reputation: 90
35 / Male / Flag
Joined: Oct 2003
Status: Away
RE: C++ Decompiler
lol that would be the worst program ever in regards to software companies, just think how many games would get hacked and trial versions modified to be full version. Yes for us it would be great, but as a whole i think its a bad idea
07-25-2004 06:55 PM
Profile PM Web Find Quote Report
Anubis
Elite Member
*****

Avatar
42

Posts: 2695
Reputation: 64
34 / Male / Flag
Joined: Oct 2003
RE: C++ Decompiler
I don't think these are possible. No doubt some guy is working on an algorithm that can decompile a program, but so far I think its more of a pie in the sky idea. If it was possible you could reverse engineer Windows, that would be Microsoft's worst nightmare :p
[Image: anubis5hq.png]
07-25-2004 07:03 PM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: C++ Decompiler
The cause why there isn't any program of that type isn't because the code of the programs of big companies would be known, the cause is because it's very very very complex doing that kind of program because there's no a unique sollution to the problem.

I mean: you have an EXE, that's the same as if you have some ASM code. Well, from the ASM code you can't decide what the original C code was, because several C codes can give as result the same ASM code and also the C code may have been so optimized that once you have the ASM it's impossible to know the original code.

Also, suppose the program can "extract" the C code: As you know, the C language uses variables (as most of all high-level programming languages). Well, what would the name of those variables be? Note that the names of variables are only nemonics (<- dodgy spelling :P). The only thing that the supposed decompiler could do is assing names like v0001, v0002, and so.. and with those names you wouldn't be able to understand the code. Similar things would happen with inline functions, global optimizations, calling conventions, etc... The code would be unreadable.

In short: there are some things in high-level languages that help the programmer in doing his/her job, and those things exists only in high-level languages. They're lost when you compile a program and they can't be restored in a decompilation. That's why, in case that kind of tool exists, it'd be useless.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-25-2004 07:31 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: C++ Decompiler
In addition, different compilers will compile the same source different ways, so you'd also need to knwo the compiler used. Even across different versions of the same compiler there will be differences in the results.
[Image: spartaafk.png]
07-25-2004 08:12 PM
Profile PM Web Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: C++ Decompiler
quote:
Originally posted by raceprouk
In addition, different compilers will compile the same source different ways, so you'd also need to knwo the compiler used. Even across different versions of the same compiler there will be differences in the results.
and ever the same compiler, depending on the options used (optimize or not, small vs fast code, debug vs release mode, etc... ) :P
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-25-2004 09:12 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: C++ Decompiler
So basically it's just not possible realistically.

Offtopic: Choli, are we having a competition to see who can get the most detail? :)
[Image: spartaafk.png]
07-25-2004 09:42 PM
Profile PM Web Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: C++ Decompiler
lol, well the reason i wanted it was to decompile a game lol. I wanted to get rid of the anti cheat function in it. O well.
[Image: top.gif]
07-26-2004 06:47 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On