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.

Compiler/PROCESSOR-SDK-DRA7X: Follow-up question re: unique identifiers

Part Number: PROCESSOR-SDK-DRA7X

Tool/software: TI C/C++ Compiler

Yordan,

I'm also talking with the customer on this.  I am replying on their behalf.  First, they thank you for the Compiler manual. They do have one follow-up query with respect to one of the MISRA violations they see in our code.

Ref: https://wiki.sei.cmu.edu/confluence/display/c/DCL23-C.+Guarantee+that+mutually+visible+identifiers+are+unique

Their query is can the TI compiler used by us "ti-cgt-arm_16.9.2.LTS" with the current compiler flags setting, guarantees that 2 identifiers(function name) are unique when the first 31 characters as same but next 31 characters as different?

John

  • John H. Gardner said:
    can the TI compiler used by us "ti-cgt-arm_16.9.2.LTS" with the current compiler flags setting, guarantees that 2 identifiers(function name) are unique when the first 31 characters as same but next 31 characters as different?

    Yes.  Please search the ARM compiler manual for the sub-chapter titled Implementation-Defined Behavior.  You'll find it says:

    The number of significant initial characters in an identifier is unlimited.

    Thanks and regards,

    -George