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: TI's name mangling



Tool/software: TI C/C++ Compiler

Hi,

processors.wiki.ti.com/.../C++_Support_in_TI_CompilersMangling:

"The algorithm for name mangling is quite complicated, and generally impossible to duplicate manually"

1. Is there a standard for C++ name mangling, particularly when involving template instantiation, etc.?

2. Is TI's mangling scheme same as GCC/MSFT?

Dave

  • The TI compiler uses two distinct C++ name mangling schemes, one for COFF and one for EABI object files. I'm going to answer these questions for EABI.

    1) Yes, in EABI mode, the compiler follows the IA64 mangling scheme.
    2) It's a bit more complicated than yes/no. First, Microsoft uses a completely different mangling scheme. There are several GCC compilers that support TI targets; any such GCC compiler which supports the TI EABI modes must use the same mangling scheme; this is required by the EABI compatibility specification.

    Does that answer your question?