我们可以优化code,以降低功耗? [英] Can we optimize code to reduce power consumption?

查看:232
本文介绍了我们可以优化code,以降低功耗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何技术来优化code,以保证较小的功率consumption.Architecture是ARM.language是C

Are there any techniques to optimize code in order to ensure lesser power consumption.Architecture is ARM.language is C

推荐答案

从ARM技术参考网站:

From the ARM technical reference site:

的ARM11 MPCore的的特点
  处理器提高能源
  效率包括:

The features of the ARM11 MPCore processor that improve energy efficiency include:


      
  • 准确分支和子例程返回prediction,减少了数
      不正确的取指令和
      德code这样的操作

  •   
  • 使用的物理寻址高速缓存,这减少了高速缓冲存储器的数
      潮红和笔芯,节能的
      系统

  •   
  • 使用MicroTLBs的减少翻译所消耗的功率和
      保护查找每个周期

  •   
  • 缓存使用顺序存取信息,以减少数
      访问标记RAM和至
      无用数据的RAM。

  •   

在ARM11 MPCore处理器
  广泛使用也由控
  时钟和门禁止输入
  未使用的功能块。只有
  积极运用逻辑来执行
  计算消耗的任何动态
  权力。

In the ARM11 MPCore processor extensive use is also made of gated clocks and gates to disable inputs to unused functional blocks. Only the logic actively in use to perform a calculation consumes any dynamic power.

根据这些信息,我想说的是处理器做了很多工作,为您节省电力。任何电力浪费将来自写得不好code,它不是必要做更多的处理,你不会想反正。如果你正在寻找保存实力,你的应用程序的整体设计将有更多的作用。网络访问,画面渲染,和其他耗电的操作将是功耗更值得关注的。

Based on this information, I'd say that the processor does a lot of work for you to save power. Any power wastage would come from poorly written code that does more processing than necessary, which you wouldn't want anyway. If you're looking to save power, the overall design of your application will have more effect. Network access, screen rendering, and other power-hungry operations will be of more concern for power consumption.

这篇关于我们可以优化code,以降低功耗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆