[Avrora] Memory Usage
Roy Shea
royshea at gmail.com
Thu Oct 22 21:02:05 PDT 2009
Howdy,
>> You can examine the static ROM and RAM required by a program without
>> Avrora. My current favorite tool for this is a script called
>> module_memory_usage from the old TinyOS 1.x repository:
>>
>> http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/contrib/SystemC/scripts/module_memory_usage?revision=1.2&view=markup
> One question: Can I use this script to check the ROM and RAM usage of
> executables (*.elf files) generated in SOS?
I think this should be fine. I took a quick look at elfs generated by
both a static configuration and a module. The numbers look reasonable
to me.
One caveat comes to mind after flipping through the script. I never
got around to really learning Perl (I'm a python kind of guy) but it
looks like the script only looks at the bss|data|text sections. SOS
configurations (anything other than a module) include a special sos_bls
section for the boot loader. You may want to revise the script to
include that in its analysis.
Peace,
-Roy
More information about the Avrora
mailing list