2007-06-03 22:30:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-08-21 10:54:34 +00:00
|
|
|
# Common variables are elusive, they don't show up in size output!
|
|
|
|
# This script will show all commons in *.o, sorted by size
|
2007-06-03 22:30:22 +00:00
|
|
|
|
2007-09-27 10:08:02 +00:00
|
|
|
find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \
|
2007-06-03 22:30:22 +00:00
|
|
|
| while read name; do
|
|
|
|
b=`basename "$name"`
|
|
|
|
nm "$name" | sed "s/^/$b: /"
|
|
|
|
done | grep -i ' c ' | sort -k2
|