Day: April 27, 2015

How to verify which functions are eating space in an ELF file?

This tip I found in the NuttX mailing list, but it could be use by any ELF file:

NM=arm-none-eabi-nm

echo "TOP 10 BIG DATA"
$NM --print-size --size-sort --radix dec -C nuttx | grep ' [DdBb] ' | tail -20

echo "TOP 10 BIG CODE"
$NM --print-size --size-sort --radix dec -C nuttx | grep ' [TtWw] ' | tail -20

Thanks Greg Nutt for these tips!