Code- and heap- size

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

Jan.Suchotzki at 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


in your configuration/initialization file somewhere before the

#include <confdefs.h>


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

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

More information about the users mailing list