From d4fea900bdb92d7bba71348a40cb00b6748a8ecc Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 10 Jun 2007 00:54:27 +0000 Subject: 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... --- Makefile.custom | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.custom') diff --git a/Makefile.custom b/Makefile.custom index d0aff3799..cf3d14321 100644 --- a/Makefile.custom +++ b/Makefile.custom @@ -79,9 +79,13 @@ baseline: busybox_unstripped 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 -- cgit v1.2.3