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

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

问题描述

有没有什么技术可以优化代码以确保更低的功耗.架构是ARM.语言是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:

  • 准确的分支和子程序返回预测,减少次数不正确的指令获取和解码操作
  • 使用物理寻址的缓存,这减少了缓存的数量冲洗和补充,节省能源系统
  • MicroTLB 的使用降低了翻译和每个周期的保护查找
  • 缓存使用顺序访问信息来减少访问标签 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.

根据这些信息,我想说处理器为您做了很多工作来节省电量.任何电力浪费都来自编写不当的代码,这些代码执行了不必要的处理,无论如何你都不会想要的.如果您希望省电,那么您的应用程序的整体设计会产生更大的影响.网络访问、屏幕渲染和其他耗电的操作将更加关注功耗.

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.

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

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