Skip to content
Ludwig Ortmann edited this page Jun 4, 2014 · 1 revision

Welcome to the otm wiki!

FAQ

Q: How do I figure out the size of one module?

A: Change this line:

135         #print "size:", self.get_size()

to

135         print self.name, "size:", self.get_size()

invoke otm, e.g.:

./otm.py -t dDbB ~/RIOT/examples/rpl_udp/bin/msba2/rpl_udp.elf

and look at the console output. It will look something like this:

...
socket.c
	sockets B
socket.c size: 885
destiny size: 5001
transport_layer size: 5001
net size: 36473
sys size: 38877
...

Objects are printed in a tree, leaves first. So sys is 38877 bytes large and contains net which adds up to 36473 bytes in the BSS section. If your modules match your directory structure: there you go.

Clone this wiki locally