Tool/software: TI C/C++ Compiler
Hi all,
Does anyone know how to use C++ on IPU cores(cortext M4) of TDA2xx?
Vision SDK version is V2.9
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.
Tool/software: TI C/C++ Compiler
Hi all,
Does anyone know how to use C++ on IPU cores(cortext M4) of TDA2xx?
Vision SDK version is V2.9
Both the TI ARM compiler and GCC ARM compiler support both C and C++. It is possible to mix C and C++ code in the same program. I don't know whether the Vision SDK has been tested to work with C++.
Thanks and regards,
-George
The compiler uses the file extension to know whether a source file contains C code or C++ code. Typically .c means C, and .cpp means C++. For further details, please search for the section titled Specifying Filenames in the ARM compiler manual.
Thanks and regards,
-George
user1427660 said:you mean that I don't need to modify any compiling options, and the compiler will recognize the files according to file extension?
Yes. That is how most users do it under most circumstances. There are some details, in the manual section I referenced in my last post, worth reviewing.
user1427660 said:if I have c and cpp code in a single file, I should name the file extension as cpp?
Yes. Though it is not accurate to say the file contains C and C++ code. With a few very esoteric exceptions, C is a subset of C++. So, if there is any C++ code in the file, then it is all considered C++.
Thanks and regards,
-George