We are using C51 v4.06 (I know, very old) on a released product. I'm trying to recreate a build we have in the field. If I do a clean and a build, I can reproduce the image we have in the field; however, if I do another build immediately after, I get different results. I don't understand why linking again, without having to recompile the source should produce different results.
I forget the details, but the Linker does build up some "state" information over successive builds - allowing it to "tweak" its optimisation...
Does this help: http://www.keil.com/forum/6421/ ?
If that is the case, how can I get consistent results whether or not I do a clean before I build? Is there a setting I'm missing?
Thank you. That does help. I had a hard time searching for similar issues and had not found that thread. I guess I'll adopt the policy of blowing away our obj folder at the start of each build.