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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s