On Mon, Jul 29, 2013 at 12:56:31PM -0700, ravim wrote:
> My apologies if I am asking something irrelevant to this forum. We are using
> mspgcc and mspdebug for our project. We are facing some issues with what we
> assume might be stack overflow. The timer interrupts stops working after
> around 2 hours, however device still receives packets. Also, when we reset
> the device after timer gets stuck, they never turn back on unless we
> re-install the code.  We are trying to debug.
> 
> I wanted to know if there is any possible way we can know the size of global
> variables in the binary? This will help us narrow down a few specifics. We
> know there is something in TinyOs when we make, it let us know size of
> global variables, we are looking for something similar in mspdebug.
> 
> We would really appreciate any help.

Try "size <filename.elf>". Add "data" and "bss" to get the total size of
statically allocated data. You can also use size on the individual
object files if you want to narrow down your search, but remember to use
--common if you need global (non-static) variables to be counted.

Cheers,
Daniel

-- 
Daniel Beer <dlb...@gmail.com>    www.dlbeer.co.nz
IRC: inittab (Freenode)    PGP key: 2048D/160A553B

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to