You are on page 1of 1

These are general gnu tools e.g.

nm, size, readelf


Say running on arm then use
"arm-none-eabi-" prefix

# To get the size of the functions (and objects with static storage duration): The
second column shows the size in decimal of function and objects.
nm --print-size --size-sort --radix=d tst.o > test.txt
arm-none-eabi-nm --print-size --size-sort --radix=d tst.o > test.txt

# To get the size of the sections/functions:


size -A -d tst.o > test.txt
arm-none-eabi-size -A -d tst.o > test.txt

#To read elf file


->Read ALL
readelf -a test.elf > test.txt
arm-none-eabi-readelf -a test.elf > test.txt
->Read Sections
readelf -e test.elf > test.txt
arm-none-eabi-readelf -e test.elf > test.txt
->Read function sizes
***********************************************************************************
**********************************************
readelf --symbols CYPD3125-40LQXI_notebook_1.elf >
test.txt
arm-none-eabi-readelf --symbols CYPD3125-
40LQXI_notebook_1.elf > test.txt

You might also like