Quote:
|
Originally Posted by phoenixodin2
without understand of algorithm, a program like a death body.
i don't know any program to do that but anyone can convert it manually.
|
Yes, that is the point. This is what I mean. You should do this manually, but a program can help in this a lot. I think it is impossible to give an always-working automatical solution, but instead it is possible to give one that assists you in recreating a code that has an equivalent structure.
Quote:
|
Originally Posted by phoenixodin2
each c++ compiler has a own way to generate code from c++ to c and then from c to asm.
|
This was true for a long time, but when new language features had been added this didn't work any more.
A referred to an excellent book about the details in a previous post.
Quote:
|
Originally Posted by phoenixodin2
+ convert this asm to c - the hardest step @@!!!@@
|
This is not that hard, there are existing tools for this.
C is very near to asm.
Quote:
|
Originally Posted by phoenixodin2
+ depend on what compiler that generated this code, convert this c code to c++ code - the easiest step.
|
This is the hardest.
The problem is that in C++ you don't just write what should the computer do (as you do in C), but at the same time you organize the code to mirror your thoughts. There is hidden information.
Just think about public, protected and private. It is some kind of documentation and error prevention, you cannot find anything about these in the generated code. This is why the assistance of a coder is needed to recognize such things.