[Tinyos-2-commits] CVS: tinyos-2.x/tools/tinyos/safe tos-ramsize, NONE, 1.1 tos-ramsize.1, NONE, 1.1 Makefile.am, 1.2, 1.3
John Regehr
regehr at users.sourceforge.net
Fri Apr 10 15:11:02 PDT 2009
Update of /cvsroot/tinyos/tinyos-2.x/tools/tinyos/safe
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27187
Modified Files:
Makefile.am
Added Files:
tos-ramsize tos-ramsize.1
Log Message:
add stack depth estimation tool
--- NEW FILE: tos-ramsize ---
#!/usr/bin/perl -w
# Copyright (c) 2003 University of Utah and the Flux Group.
# All rights reserved.
#
# Permission to use, copy, modify, distribute, and sell this software
# and its documentation is hereby granted without fee, provided that the
# above copyright notice and this permission/disclaimer notice is
# retained in all copies or modified versions, and that both notices
# appear in supporting documentation. THE COPYRIGHT HOLDERS PROVIDE
# THIS SOFTWARE "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE COPYRIGHT
# HOLDERS DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
# RESULTING FROM THE USE OF THIS SOFTWARE.
#
# Users are requested, but not required, to send to csl-dist at cs.utah.edu
# any improvements that they make and grant redistribution rights to the
# University of Utah.
[...1643 lines suppressed...]
print "\n";
foreach my $addr (sort bynum keys %insns) {
if (!$visited{$addr}) {
my $l = $addr_to_label{$addr};
if (defined($l) && !defined($SPECIAL{$l})) {
printf "unreachable label: %x %s\n", $addr, $l;
}
}
}
}
if ($verbosity > 0) {
print "\n";
print "BSS segment size is ${bss_size}, data segment size is ${data_size}\n";
}
print "The upper bound on stack size is ${total_depth}\n";
print "The upper bound on RAM usage is $ramused\n";
print "There are $free_mem unused bytes of RAM\n";
##########################################################################
--- NEW FILE: tos-ramsize.1 ---
.TH tos-ramsize 1 "Apr 10, 2009"
.LO 1
.SH NAME
tos-ramsize - Compute RAM usage of a TinyOS application including the stack
.SH SYNOPSIS
\fBtos-ramsize\fR [-verbosity=n] mica2|micaz|iris elf-file
.SH DESCRIPTION
Write me.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tools/tinyos/safe/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Makefile.am 1 Jul 2008 01:27:55 -0000 1.2
--- Makefile.am 10 Apr 2009 22:11:00 -0000 1.3
***************
*** 1,5 ****
AUTOMAKE_OPTIONS = foreign
! dist_man_MANS = tos-decode-flid.1
! bin_SCRIPTS = tos-decode-flid
--- 1,5 ----
AUTOMAKE_OPTIONS = foreign
! dist_man_MANS = tos-decode-flid.1 tos-ramsize.1
! bin_SCRIPTS = tos-decode-flid tos-ramsize
More information about the Tinyos-2-commits
mailing list