ARM tool to view register usage

  • Thread starter Thread starter ksatria
  • Start date Start date
  • Tags Tags
    Arm
Click For Summary
SUMMARY

The discussion centers on the need for a tool that provides statistics on ARM register usage, specifically for the ARM architecture. The user seeks a solution to identify which registers, such as r0 to r10, are utilized in their code, while noting that r11 appears unused. They mention that the armcc compiler omits frame pointer usage, leading to confusion regarding the actual usage of registers in disassembly. The user is directed to the ARM website for potential tools that may fulfill this requirement.

PREREQUISITES
  • Understanding of ARM architecture and its register set
  • Familiarity with the armcc compiler and its behavior regarding frame pointers
  • Basic knowledge of disassembly and code analysis techniques
  • Experience with performance profiling tools for embedded systems
NEXT STEPS
  • Research tools for ARM register usage analysis, such as ARM Development Studio
  • Learn how to use the armcc compiler flags for better register tracking
  • Explore disassembly tools like Ghidra or IDA Pro for deeper insights
  • Investigate performance profiling techniques specific to ARM architectures
USEFUL FOR

Embedded systems developers, ARM architecture enthusiasts, and software engineers looking to optimize register usage in their applications.

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

Similar threads

  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
10
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • Sticky
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
20
Views
3K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K