Out of curiosity, is there a way to extract the machine code encoded in .o files into a human readable, say, .cpp file?
Out of curiosity, is there a way to extract the machine code encoded in .o files into a human readable, say, .cpp file?
If there was a way, identifiers would not have their names preserved and the code would be difficult to make sense of.
{RTFM, KISS}
You mean like a decompiler? If that's the case, you might want to check out Boomerang, it's been used to recover actual code from executables, but I believe it's still considered beta.
operating systems: mac os 10.6, debian 5.0, windows 7
editor: back to emacs because it's more awesomer!!
version control: git
website: http://0xff.ath.cx/~as/
thanks, i agree still in alpha : ) but nevertheless, nice try!
> is there a way to extract the machine code encoded in .o files into a human readable
Well you can use objdump to get back to the assembler very easily.