Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

Loading...
#!/bin/sh

# Common variables are elusive, they don't show up in size output!
# This script will show all commons in *.o, sorted by size

find -name '*.o' \
| while read name; do
    b=`basename "$name"`
    nm "$name" | sed "s/^/$b: /"
done | grep -i ' c ' | sort -k2