- Use the TI Code Composer Studio (CCS) IDE to compile your C source code and generate the necessary object files. You can then use the MEX command to link these object files with your MATLAB code.
- Another option is to use MATLAB's Embedded Coder, which generates C code from MATLAB code. You can then use the TI C6000 compiler to compile the generated C code. This approach may require some modifications to your original code to make it compatible with the Embedded Coder.
- Finally, you could consider rewriting the code that uses TI C6000 intrinsic functions in a way that is compatible with the MinGW64 compiler. This may involve using alternative functions or implementing your own functions that achieve the same functionality.
Why can't the MEX function compile the TI C6000 intrinsic functions used in C files that includes the header c6x.h from TI?
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to generate MEX files for some C source codes which contain some TI C6000 intrinsic functions. Although the headers include the TI c6x.h header, it still generates data type errors when compiling and generating the mex files using MEX command.
The compiler used for C in Matlab is MinGW64. I would assume that the TI functions used in the C source code files cannot be interpreted and compiled by MinGW64 compiler.
Is there any way to use TI C6000 compiler for MEX (C) applications in MATLAB?
Would appreciate any possible solutions or recommendations to integrate the TI C6000 intrinsic functions within MATLAB environment.
0 个评论
采纳的回答
Vidip Jain
2023-3-20
It is not possible to use the TI C6000 compiler directly with MATLAB's MEX command. However, there are some alternatives you can consider:
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!