×

了解微控制器性能分析技术

消耗积分:0 | 格式:rar | 大小:0.09 MB | 2017-08-15

分享资料个

  了解微控制器性能分析技术

  基准可以让你比较处理器,但仍然有很多的可变性。理解和运行标准基准可以让设计者对应用程序有更深入的了解和控制。

  比较微处理器是不容易的。甚至比台式机或笔记本电脑,通常的处理器是相同的基本架构,所有的变种,可令人沮丧的数字可能会快一慢极了比作一个“糟糕”的一个。在嵌入式世界,情况变得更加艰难,处理器和配置的数量实际上是无限的。

  基准测试是解决这个难题的常用方法。多年来,Dhrystone的基准(在油石基准,包括浮点运算,Dhrystone省略了玩)是镇上唯一的游戏。然而,它有许多重要的问题。其中最主要的一点是,它并不反映任何真实世界的计算,它只是试图模拟各种运算的统计频率。此外,编译器通常可以在编译时完成大量的计算,这意味着在基准运行时不需要完成这项工作。

  了解微控制器性能分析技术

  The real test of a benchmark is that, when looking in detail at results (especially ones that initially look strange), you can rationalize why the results look the way they do. An ideal benchmark would provide a score that purely reflected the processor’s performance capabilities, irrespective of the rest of the system. Unfortunately, that’s not possible because no processor acts in isolation: all processors must interact with memory – cache, data memory, and instruction memory, each of which may or may not run at the full processor frequency. In addition, these processors must all run code generated by a compiler, and different compilers generate different code.

  Even the same compiler will generate different code depending on the optimization settings chosen when you compile your code. Such differences cannot be avoided, but the main thing to avoid is having the actual benchmark code optimized away.

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !