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

Compiles & links differently only the 1st time...?!

I have a C16x project that exhibits a behaviour that I don't understand. Basically, if I un-archive a project into an empty subdirectory and do a "build all" I get a certain HEX file. However, all subsequent times I do a "build all" (without changing anything) I get a different HEX file. In other words, 2 HEX files from the same project. The process is very repeatable. Anyone have a clue as to why that might be? I'm not using anything that I know of that might cause a difference (such as using __TIME__ or __DATE__), and it's just different after the first build (it's always the same for the 2nd and subsequent builds).

Confused...
Dave.

Parents
  • I'm quite relieved now that we can repeatedly, reliably recreate the same HEX file from the same project.

    Note, however, that different versions of Keil tools will most likely generate different code. So if you need to be able to rebuild the same HEX file after a while, you will have to use the same version of the Keil toolchain.

    Regards,
    Mike.

Reply
  • I'm quite relieved now that we can repeatedly, reliably recreate the same HEX file from the same project.

    Note, however, that different versions of Keil tools will most likely generate different code. So if you need to be able to rebuild the same HEX file after a while, you will have to use the same version of the Keil toolchain.

    Regards,
    Mike.

Children
No data