[Tinyos Core WG] 2.1 safe testing
Philip Levis
pal at cs.stanford.edu
Thu Jun 26 17:28:26 PDT 2008
I am unable to compile basic apps safely for the micaz. When I compile
Blink safe, it uses less RAM and I get two warnings:
darkness ~...apps/Blink -> make micaz
mkdir -p build/micaz
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe <snip>
compiled BlinkAppC to build/micaz/main.exe
2096 bytes in ROM
51 bytes in RAM
darkness ~...apps/Blink -> make micaz safe
mkdir -p build/micaz
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe <snip>
/home/pal/src/tinyos-2.x/tos/system/SchedulerBasicP.nc: In function
'SchedulerBasicP$Scheduler$init':
/home/pal/src/tinyos-2.x/tos/system/SchedulerBasicP.nc:117: warning:
passing argument 1 of 'memset' discards qualifiers from pointer target
type
/home/pal/src/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc: In function
'VirtualizeTimerC$0$updateFromTimer$runTask':
/home/pal/src/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:96: warning:
overflow in implicit constant conversion
compiled BlinkAppC to build/micaz/main.exe
2268 bytes in ROM
31 bytes in RAM
Unsafe:
51 bytes of Heap RAM in build/micaz/main.exe, usage by module:
2 MeasureClockC
4 SchedulerBasicP
5 AlarmToTimerC
13 Atm128AlarmAsyncP
27 VirtualizeTimerC
Safe:
31 bytes of Heap RAM in build/micaz/main.exe, usage by module:
2 MeasureClockC
3 AlarmToTimerC
4 SchedulerBasicP
7 Atm128AlarmAsyncP
15 VirtualizeTimerC
I've attached the two app.c files for comparison.
Is this because my setup is not quite right, or an issue with safe
tinyos?
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: safe-app.c
Type: text/x-csrc
Size: 93169 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-2.0wg/attachments/20080626/0adac145/attachment-0002.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unsafe-app.c
Type: text/x-csrc
Size: 88607 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-2.0wg/attachments/20080626/0adac145/attachment-0003.c
More information about the Tinyos-2.0wg
mailing list