From 8e8a8418f56fcb9c23c42685075beae0cd8d0aee Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 1 Feb 2016 04:03:14 -0500 Subject: print BSS size in size.pl --- size.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/size.pl b/size.pl index 0b25617..f02d69f 100644 --- a/size.pl +++ b/size.pl @@ -14,8 +14,9 @@ close MAP; $free = (0xbc20 - $stack_size) - $bss_end + 1; $code_size = $bss_start - $code_start; +$bss_size = $bss_end - $bss_start + 1; printf "===> code ends at \$%04x (%d, %.1fK)\n", ($bss_start - 1), $code_size, $code_size / 1024; -printf "===> BSS ends at \$%04x\n", $bss_end; +printf "===> BSS ends at \$%04x (%d, %.1fK)\n", $bss_end, $bss_size, $bss_size / 1024; printf "===> stack starts at \$%04x\n", 0xbc20 - $stack_size; printf "===> free code space \$%04x (%d, %.1fK)\n", $free, $free, $free / 1024; -- cgit v1.2.3