I have a problem about checksum and I am in a hurry to understand. The same source code is compiled by different version of KeilC compiler. Are their checksum same? If they are different, how to prove they are same source code? Please give me a answer. Thank you very much.
In the same harware, the same source code is compiled by different KeilC compiler version. Are their results same, eg, Action? yes, they should work the same and they will if you have coded correctly. now what can go wrong? I just had an example here. I modified a non-communication routine in some inhereited code and the communication section (which I did not touch) started having intermittent problems. When I finally found the cause it was that in a 5 year old product, sold in the thousands, an interrupt handler was incorrectly coded. This problem never showed up till the main loop run time changed. Should this keep you from upgradeing? by no means, it should tell yoy that "testing" does not "prove" diddlysquat. Based on this I have added to the test suite that all code is tested compiled by two different versions, not that that "proves" anything, but the likelyhood of finding dormant errors is increased. Erik
"'testing' does not 'prove' diddlysquat." That's not quite true. Testing does show that your system behaves as you expected under the conditions of the test. Of course, that is no proof that your system is entirely correct - as Erik's example shows!
Andy, I agree ( see highlights "'testing' does not 'prove' diddlysquat." That's not quite true. Testing does show that your system behaves as you expected under the conditions of the test. Erik
Tests can prove the presence of errors, but not the absence thereof.
the classic quote "succesful testing does not prove the abscence of errors, it proves the abscence of known errors" Erik