View Full Version : converting c/c++ code to assembly

07-24-2002, 12:29 PM
can we convert c/c++ code to assembly code?

07-24-2002, 12:48 PM
yes but it is illegal

07-24-2002, 12:48 PM
no, the machine needs to read c and c++ code in its original form in order for the code gremlins to understand and execute it properly. if it were converted to assembly, all the object orientedness and structures would fall out of the bottom!

07-24-2002, 12:55 PM
>can we convert c/c++ code to assembly code?

I don't know if you can, but maybe your compiler can. A lot of compiler are able to compile to assembly code.

07-24-2002, 01:10 PM
There's an output setting on VC++ that produces an ASM code file when compiling.....

07-24-2002, 01:53 PM
If you don't have VC++, compile into an .exe and then decompile.

07-24-2002, 08:17 PM
>>> yes but it is illegal

No it is not. Almost all compilers have the option to output the object code they produce. Even if they don't, the intermediate files they produce after compiling but before linking are almost certainly around somewhere, look for them.

07-25-2002, 01:20 PM
It definately isn't illegal if it is your code that you are decompiling. If it's somone else's code then it is a different story.

07-25-2002, 02:15 PM
Uh, yeah. Better compilers have a little option can turn on called "dissassembly". You can also turn on symbol tables, etc.