add script which measures stack consumption.
Current top users:
0x08052f52 uncompress []: 393312
0x080c8a58 input_tab []: 82104
0x08092d5b ifaddrlist []: 32828
0x08056163 loadfont_main []: 32796
0x0806e508 colon []: 16532
0x08056095 do_loadfont []: 16400
0x0806da70 place_cursor []: 16388
0x080792e8 login_main []: 9176
393 kb of stack??? OMG...
diff --git a/Makefile.custom b/Makefile.custom
index d0aff37..cf3d143 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -79,9 +79,13 @@
objsizes: busybox_unstripped
$(srctree)/scripts/objsizes
+.PHONY: stksizes
+stksizes: busybox_unstripped
+ $(CROSS_COMPILE)objdump -d busybox_unstripped | $(srctree)/scripts/checkstack.pl $(ARCH)
+
.PHONY: bigdata
bigdata: busybox_unstripped
- nm --size-sort busybox_unstripped | grep -vi ' [tr] ' | tail -20
+ $(CROSS_COMPILE)nm --size-sort busybox_unstripped | grep -vi ' [tr] '
# Documentation Targets
.PHONY: doc