Inspecting object code
Posted on 2001-06-24
I am doing some investigation into program similarity, i wonder if someone can help.
The two snippets of code below both do essentially the same thing, but one uses a 'for loop', and the other a 'while loop'.
The thing that interests me is, that after each program has been compiled to an .obj (presumably before linkage takes place), will the .obj's be different ? and what are the difference's likely to be.
Would it be possible to write a program parse the .obj's, and detect the difference's (or in my case the similarities) ?
Thanks for any help