blob: 9f26bc7ac68c17b8741cbd4479b8c3c7ac3f13ca [file] [log] [blame]
Denis Vlasenko4e5f82c2007-06-03 22:30:22 +00001#!/bin/sh
2
Denis Vlasenkof7d9e842007-08-21 10:54:34 +00003# Common variables are elusive, they don't show up in size output!
4# This script will show all commons in *.o, sorted by size
Denis Vlasenko4e5f82c2007-06-03 22:30:22 +00005
6find -name '*.o' \
7| while read name; do
8 b=`basename "$name"`
9 nm "$name" | sed "s/^/$b: /"
10done | grep -i ' c ' | sort -k2