Is there a way to embed the CCS, compiler and linker versions into my C-code? I suppose I could write a script to
parse the output of the version option to each tool but I was hoping for an easier way.
Victor
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.
Is there a way to embed the CCS, compiler and linker versions into my C-code? I suppose I could write a script to
parse the output of the version option to each tool but I was hoping for an easier way.
Victor
The TI compiler and linker define the predefined symbol _ _TI_COMPILER_VERSION_ _ which contains their version number. See the "Predefined Macro Names" section of the User's Guide for your compiler for how the version number is encoded.victor Valencia said:Is there a way to embed the CCS, compiler and linker versions into my C-code?
[Not sure which processor family you are using - links to the User Guides are at http://processors.wiki.ti.com/index.php/TI_Compiler_Information#Compiler_Manuals]
I can't see any predefined symbol, or Build Variable, which defines the CCS version.
Thanks to Chester and John for the help. That's exactly what I was looking for.
Victor