Bernhard Reutner-Fischer | 06a81d3 | 2006-04-26 10:10:25 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | printf "%9s %11s %9s %9s %s\n" "text+data" text+rodata rwdata bss filename |
Denis Vlasenko | d1a302b | 2006-12-31 20:40:20 +0000 | [diff] [blame] | 4 | find -name '*.o' | grep -v '^\./scripts/' | grep -vF built-in.o \ |
| 5 | | sed 's:^\./::' | xargs size | grep '^ *[0-9]' \ |
Bernhard Reutner-Fischer | 06a81d3 | 2006-04-26 10:10:25 +0000 | [diff] [blame] | 6 | | while read text data bss dec hex filename; do |
| 7 | printf "%9d %11d %9d %9d %s\n" $((text+data)) $text $data $bss "$filename" |
Denis Vlasenko | 57308af | 2006-09-28 22:34:46 +0000 | [diff] [blame] | 8 | done | sort -r |