Hi,
I have an *.abs file, that is a compiled C program.
I know this is a silly question, but is there a way to obtain the C source code for this file?
Thank you very much!
Hi,
I have an *.abs file, that is a compiled C program.
I know this is a silly question, but is there a way to obtain the C source code for this file?
Thank you very much!
Yup, if you do me the favour of inventing a machine that can separate cake into eggs, flour, sugar and water, I'm sure soon after someone will come up with a reverse compilers...
Honestly, yes, it's possible to create something that is C code, but it will NOT be the source-code of the application as it was written. It may be a bit more readable than the disassembled assembler, but it's certainly nothing like C code that any human would have written, and it certainly won't be a good basis to extend/change the application. If the code is optimized, the compiler will have "scrambled" the instructions to improve the performance, which means that something that looks reasonable to a human in source code, like this:
would perhaps come to:Code:x = 1; y = 2; a = 100; b = 200;
But that has a completely different meaning in a bigger picture - but the compiler decided that it would make that change.Code:v1 = 100; v2 = 1; v3 = v2+1; v4 = 2 * v1;
Data structures will most likely be lost, as will variable names.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.