How to check if the linux binary file has newly added code or not

view story

http://stackoverflow.com – I have a certain a project consiting multiple *.cpp files which i compile using g++. I changed on source file to add some code. Built the project again . Just to check i did diff -s origbinaryfile changedbinaryfile It showed me that files are identical, which was strange as I have added a extra code and was hoping to see a difference in the generated linux binaries. I have added a code which is a extra case statement in a existing switch case code .e.g. Earlier I had switch(x) case: DEV1 ... case: DEV2 ... Changed one is switch(x) case: DEV1 ... case: DEV2 ... (HowTos)