ARM tool to view register usage

  • Thread starter Thread starter ksatria
  • Start date Start date
  • Tags Tags
    Arm
AI Thread Summary
There is a need for tools that provide statistics on ARM register usage, specifically to identify which registers are utilized within a codebase. Users are interested in understanding the usage patterns of registers, such as determining if registers like r0 to r10 are actively used while others, like r11, are not. The motivation stems from the observation that the ARM compiler (armcc) omits frame pointer usage, treating it as a general-purpose register, which complicates the analysis of register usage in disassembled code. While some resources were suggested, including the ARM tools page, no specific tools were mentioned in the discussion for tracking register statistics comprehensively across an entire code image.
ksatria
Messages
16
Reaction score
0
I tried googling on it, but can't find the answer, maybe the keywords doesn't accurate so always led me to definition of each ARM registers instead of what I want to know.

What I want to know is: is there any tool for ARM that give some statistic on register usage?
for example giving information that r0 to r10 are used within my code, but r11 is never used.

my motivation is: I realize that armcc by default omit frame pointer usage (i.e. will use FP / frame pointer as general purpose register), however I can't see in the dissasembly that FP or r11 is used (even for scratch), but of course I only check on small piece of code, not all image, maybe r11 is used somewhere else, that's why I wondering is there any tool to give statistic on usage of each ARM registers.

Thanks!
 
Computer science news on Phys.org
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top