This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CCSTUDIO-C2000
Tool/software: TI C/C++ Compiler
Hi, TI
I have a question about the .out file generated by the CCS tool.
The question is that the content of the .OUT are different after compiling the project with the same source file and same compiler option each time.
Here is my steps to do the testing.
1. Created an new TEST project.
2. Build the TEST project to generate the TEST.out file.
3. Rename the TEST.out to TEST_V1.out.
4. Click Rebuild Project in the CCS tool.
5. New TEST.out was generated.
6. Compare the TEST_V1.out and TEST.out by beyond-compare and found that many lines are different.
I wonder why the .out are different even with the same source code and same compiler? Is there any way to fix this problem?
Thanks!
The executable .out file contains lots of data about the program that is not loaded to the target. This extra data changes between builds.
A better way to compare executable files is with the utility objdiff from the cg_xml package. By default, it ignores all the extra data about the program.
Thanks and regards,
-George
OK. I got it.
By the way, the hex2000.exe can be used to extract the data which is needed to be loaded to the target, right?
Because I find that the output of the hex2000.exe all the same even though the .out are different.
You are on a good path, but there is more to it than that. Please see this forum thread.
Thanks and regards,
-George
I went through the website you shared. I have two questions need to be clarified.
1. The hex2000.exe can be used to extract the binary data need to be loaded to the target. But TI don't guarantee the binary result are all the same after compiling under same conditions(Source file, compiler and so on).
2. TI can guarantee that the obj files will be the same after compiling under the same conditions by using "objdiff", right?
user6413985 said:TI can guarantee that the obj files will be the same after compiling under the same conditions by using "objdiff", right?
Unfortunately, no. The reasoning is the same as the one given in the other forum thread I already referred to.
Thanks and regards,
-George