diff fails as the assembly listing is filled with slightly different labels.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of directly comparing the assembly listings produced by the
-Soption, you could instead compile down to object files, disassemble the object files, and then compare those. (Or, you could just do a straight out diff of the hexdump of the compiled object code, but that’s much more painful). This gets rid of most labels, so it should make it easier to compare with diff. For example: