repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
re-establish kernel assert()s.
[minix.git]
/
commands
/
scripts
/
datasizes.sh
blob
e85661998ef085beba402b44f705737ed5f533a8
1
#!/bin/sh
2
3
if
[
$#
-ne
1
]
4
then
echo
"Usage:
$0
<executable>"
5
exit
1
6
fi
7
8
nm
-d -n
$1
|
grep
' [bBdD] '
|
awk
'{ printf "%10ld kB %s
\n
", (
$1
-lastpos)/1024, lastname; lastpos=
$1
; lastname=
$3
}'
|
sort
-n