Hi,大家好:
使用的芯片是C6670,编译器是7.3.1
在代码优化的过程中有一个疑问向大家请教,在代码流水执行时,如果有if-else分支代码,代码预取会选择预取if分支,还是else分支;代码预取的规则在那个文档的那一部分可以查阅得到,谢谢!
Brighton Feng:
C6000系列DSP核不支持分支预测。
关于C6000优化,前参阅以下文档:
uSPRU187, “TMS320C6000 Optimizing Compiler User’s Guide”, provides a complete description of the C/C++ compiler option and how to tune compiler to generate optimized code.
uSPRU198, “TMS320C6000 Programmer’s Guide”, provides step by step procedures to tune code performance using compiler options and manually optimization technology on C6000 DSPs.
uSPRA666, “Hand-Tuning Loops and Control Code on the TMS320C6000”, provides useful tips and to tune loop and control code manually.