aboutsummaryrefslogtreecommitdiff
path: root/size.pl
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-01 04:03:14 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-01 04:03:14 -0500
commit8e8a8418f56fcb9c23c42685075beae0cd8d0aee (patch)
treed79789a3cae3877085833366c9b19aa7306c3e4a /size.pl
parentbb03d1a3a4eb97ff4e0b7ca4b642a47828cfd778 (diff)
downloadtaipan-8e8a8418f56fcb9c23c42685075beae0cd8d0aee.tar.gz
print BSS size in size.pl
Diffstat (limited to 'size.pl')
-rw-r--r--size.pl3
1 files changed, 2 insertions, 1 deletions
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;