Can we optimize code to reduce power consumption?

后端 未结 9 1555
南方客
南方客 2021-02-07 13:01

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

9条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 13:14

    Optimizing code to use less power is, effectively, just optimizing code. Regardless of whether your motives are monetary, social, politital or the like, fewer CPU cycles = less energy used. What I'm trying to say is I think you can probably replace "power consumption" with "execution time", as they would, essentially, be directly proportional - and you therefore may have more success when not "scaring" people off with a power-related question. I may, however, stand corrected :)

提交回复
热议问题