Can we optimize code to reduce power consumption?

后端 未结 9 1557
南方客
南方客 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条回答
  •  梦毁少年i
    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.

提交回复
热议问题