本文介绍了估计根据运行时间分析/ code尺寸功耗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发并在我的电脑上测试C程序,现在我想给的程序做一次运行所需的电力消耗的估计。我浅析浅析应用程序和应用程序内invidiual函数调用的运行时间,我知道无论是在装配线上code尺寸,而且纯粹的C线。

I've developed and tested a C program on my PC and now I want to give an estimate of the power consumption required for the program to do a single run. I've analysised the running time of the application and of invidiual function calls within the application and I know the code size both in assembly lines, but also raw C lines.

我怎么会给基础上,性能分析和/ code尺寸的功耗估计是多少?我想这跟线使用CPU进行计算或做内存访问,但量我希望一个更precise答案秤。

How would I give an estimate of the power consumption based on the performance analysis and/code size? I suppose it scales with the amount of lines that uses the CPU for computations or does memory access but I was hoping for a more precise answer.

另外,我怎么会告诉说上功耗之间的差异我的电脑相比,微芯片设备上?

Also, how would I tell the difference between the power consumption on say my PC compared to a on a microchip device?

推荐答案

有是给的各种处理器。他们给每指令11毫微焦耳的酷睿双核,例如。如何有用的会是你要看你的code多少看起来像的SPECint基准,我猜。

There is a paper on Intel's website that gives average energy per instruction for various processors. They give 11 nJ per instruction for Core Duo, for example. How useful that'll be for you depends on how much your code looks like the SpecInt benchmark, I guess.

这篇关于估计根据运行时间分析/ code尺寸功耗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 04:28
查看更多