This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Checksum problem

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.

Parents
  • 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

Reply
  • 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

Children