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.

reproducible build (deterministic build)



Hi experts,

I have two questions from my customer regarding Code Composer Studio products for C2000 (F2812) software development.
Using CCS version 2.21.04.

Q1: Is there an option in CCS equivalent to a reproducible build (deterministic build)?

Q2:Could you please provide details of the information contained in the header part of the obj file in order to understand the content of the differences?
If Q1 is not supported, we plan to build a maintenance environment by looking at the binary (Hex) of the obj file at the same source input.

Best regards,
O.H

  • Hello O.H.

    Assuming the same build environment between builds, the customer can expect the results to be consistent. I believe that there may be some timestamp (and similar) information in the object files that of course would be different. I will have the compiler experts comment further.

    Thanks

    ki

  • I think we need a clear definition of what constitutes a "reproducible build".  For example, from the compiler perspective, the compiler's behavior is deterministic in the passes that it runs given that the verison, file inputs, options, and environment are exactly the same.  However, there may be minor differences caused by temporary file names and other things in the source code.  Use of __DATE__ or __TIME__, reference to things in the host or OS environment, the file system, etc, that the compiler cannot account for.

    Also, there is a tool called objdiff in the cg_xml package that might be useful.

    -Alan