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.

[参考译文] 回复:CCS/LAUNCHXL-F28377S:math.h 和 stdlib.h 的周期计数

Guru**** 2578945 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/649773/re-ccs-launchxl-f28377s-cycle-count-for-math-h-and-stdlib-h

注意:从此主题中拆分: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/646525

你(们)好 Devin  


感谢您的建议。 我已经解决了采样问题。 目前、我正在使用卡尔曼滤波器。 我有几个问题。

第一个。 如何计算或知道从 math.h 或 stdlib.h 库(即+、-、/、fpow、fabsf)获取运算的周期数?
第二个。 调试模式 CCSv7的单图精度是否可报告? 我通过该工具显示信号、但我认为他的准确度较差(相对于示波器的延迟较大、噪声较大等)。
第三个。 您能否建议我参考以了解代码优化(提示或建议、文档等)? 我正在使用 c 语言进行编程、但我非常不满意。