Can we optimize code to reduce power consumption?

后端 未结 9 1553
南方客
南方客 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条回答
  • Keep IO to a minimum.

    0 讨论(0)
  • 2021-02-07 13:33

    Try to stay in on chip memory (cache) for idle loops, keep I/O to a minimum, keep bit flipping to a minimum on busses. NV memory like proms and flash consume more power to store zeros than ones (which is why they erase to ones, it is actually a zero but the transitor(s) invert the bit before you see it, zeros stored as ones, ones stored as zeros, this is also why they degrade to ones when they fail), I dont know about volatile memories, dram uses half as many transistors as sram, but has to be refreshed.

    For all of this to matter though you need to start with a lower power system as the above may not be noticeable. dont use anything from intel for example.

    0 讨论(0)
  • 2021-02-07 13:33

    On some ARM processors it's possible to reduce power consumption by putting the voltage regulator in standby mode.

    0 讨论(0)
提交回复
热议问题