Code- and heap- size

Eric Norum eric.norum at usask.ca
Fri Oct 5 16:44:22 UTC 2001


Jan.Suchotzki at de.abb.com wrote:
> 
> Hi,
> 
> thank you, that is exactly what I was looking for.
> But it means, that I´m not able to get information about the
> memory used for local variables with functions like Heap_Get_information()?
> 
> Jan Suchotzki

You can get information on per-task stack usage if you configure RTEMS
with the stack checking extension.

Just add

#define STACK_CHECKER_ON

in your configuration/initialization file somewhere before the

#include <confdefs.h>

line.

Then, in your program call Stack_check_Dump_usage() to print stack usage
statistics.

-- 
Eric Norum                                 eric.norum at usask.ca
Department of Electrical Engineering       Phone: (306) 966-5394
University of Saskatchewan                 FAX:   (306) 966-5407
Saskatoon, Canada.



More information about the users mailing list