Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Profiling Power consumption on ARM for C program

Tags:

c

embedded

arm

I have multiple C programs each doing the same piece of functionality. I want to evaluate/calculate which of these has a lower power consumption( on ARM) Is there some tool(simulator) with which I can simulate and get the number of power consumed and compare the same for each of the programs on desktop?

Based on this I will decide which of these apps I will finally put on the ARM.

like image 863
seahorse Avatar asked Oct 08 '22 10:10

seahorse


2 Answers

that is not something you can simply model and run, you would have to know the exact core and gate switches, etc and the apply that to the cell library and on and on. If you work with/for the company making the chip then ask the silicon team they might have a tool for that otherwise you have to measure power differences on a pcboard running the code on real chips. The arm rtl and the cell library properties are not available to the general public only folks that have paid for those items

like image 136
old_timer Avatar answered Oct 12 '22 12:10

old_timer


This tool looks quite promising. It is part of the ARM RVDS 4.0 Pro.

It does non-intrusive performance profiling. It is propriety though. So it may be expensive. But there is a trial version too, which gives you about a month of free use.

If you are using gcc-arm, you can also try the GNU Profiler.

like image 45
ApprenticeHacker Avatar answered Oct 12 '22 10:10

ApprenticeHacker