Part Number: TMS320C6748
请教以下几个问题:
1、C6748片上是否带有硬件乘法器?在代码中如何调用?
2、目前发现浮点数运算的时间开销较大,请问如何优化?
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.
1. C6748片上有2 个乘法功能单元做乘法运算,请看下面的CPU user guide。
2.3 Functional Unit
https://www.ti.com/lit/ug/sprufe8b/sprufe8b.pdf
在c语言中直接写c=axb就可以,汇编中可以调用汇编指令。指令介绍也在上面的文档Table E-1. Instructions Executing in the .M Functional Unit
2. 打开cache,EDMA,另外在编译时使用-O3选项。另外,可以参考下面的优化帖子。
https://e2echina.ti.com/support/processors/f/processors-forum/19044/ti-c6000-startup-guide