Those scripts can only report static heap usage. Arrays declared in functions are dynamically allocated on the stack. - Cory
On 4/6/06, An Liu <[EMAIL PROTECTED]> wrote: > Hi, > > I found that my module has no RAM usage by check_size.pl script. > Even the functions in my module use large array and other variables, > the RAM size showed after my compilation is only 19. That's impossible > because the size of array in my function is 60 bytes. Does anyone have > this problem. > > > > $ make micaz > mkdir -p build/micaz > compiling CodeSize to a micaz binary > ncc -o build/micaz/main.exe -O0 -finline-limit=100000 -Wall -Wshadow > -DDEF_TOS_A > M_GROUP=0x7d -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c > -board=mica > sb -DMULTIPLE_COLLUDING -DIDENT_PROGRAM_NAME="CodeSize" > -DIDENT_PROGRAM_NAME_BYT > ES="67,111,100,101,83,105,122,101,0" -DIDENT_USER_ID="MICAz" > -DIDENT_USER_ID_BYT > ES="77,73,67,65,122,0" -DIDENT_HOSTNAME="snet01" > -DIDENT_HOSTNAME_BYTES="115,110 > ,101,116,48,49,0" -DIDENT_USER_HASH=0x16ed9648L -DIDENT_UNIX_TIME=0x44359a0fL > -I > /opt/tinyos-1.x/tos/lib/CC2420Radio CodeSize.nc -lm > compiled CodeSize to build/micaz/main.exe > 6062 bytes in ROM > 19 bytes in RAM > avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec > avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex > writing TOS image > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
