Tool/software: TI C/C++ Compiler
Hi,
Is there a compiler option to prevent object files changing the content when file is re-compiled? If yes, what/where is that option? Assembly file objects stays 1:1 when re-assembling them so they works as expected.
The change looks to be always in a "string" in the object where some numbers changes to different values. When making library of these changed objects results that also the library is changed but final executable which uses the library is 1:1 so changes in objects or library does not affect the final output as it shouldn't since original source code files are unmodified.
Changes causes annoying issues when library is stored in version control and it claims it changed so there is no easy way to see is that change "cosmetic" or real change.
Diff of one object file:
...1515210.$C$L1.$C$L2.$C$L3.$C$
vs
...1260810.$C$L1.$C$L2.$C$L3.$C$
diff of second object file:
...........2742410.$C$L1.$C$L2.$
vs
...........0440410.$C$L1.$C$L2.$
and all the c object files looks similar...
Don't know what those strings are so it is a bit difficult to invent proper keyword to try to search correct item, quick look through CCS project options didn't pop any potential settings. Tested that by default for example the IAR compiler produces 1:1 objects so it should be doable.
Easiest way to test this is to compile code, backup objects then clean project & re-compile and diff objects.
Currently using TI v16.3.0 STS & CCS 6.1.3.00033 if that matters and never versions has some other options, most likely there is at least command line option in this compiler version if not direct GUI setting...