Code- and heap- size

Jan.Suchotzki at de.abb.com Jan.Suchotzki at de.abb.com
Fri Oct 5 12:57:47 UTC 2001



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




                                                                                        
 (Embedded     Eric Norum <eric.norum at usask.ca>@young.USask.Ca                          
 image moved   04.10.2001 19:48                                                         
 to file:                                                                               
 pic31128.pcx)                                                                          
                                                                                        
                                                                                        


Sent by:  Eric_Norum at young.USask.Ca


To:   Jan.Suchotzki at de.abb.com
cc:   rtems-users at oarcorp.com
Subject:  Re: Code- and heap- size

Security Level:?         Internal

Jan.Suchotzki at de.abb.com wrote:
>
> Hi,
>
> while I´m now able to get all the information about used resources
> (thanks again for the answers), I have a new porblem.
>
> I was wondering where RTEMS allocates the memory for normal
> variables, arrays etc. A short example that I´ve written for this
> problem:

Local variables go on the task stack.  They take up space only
when the function is active.

It is up to you to make sure
that the stack for each task is big enough to hold all local variables.
Be especially careful with recursive functions and functions with
large local variables.

The need to predetermine stack usage is a requirement of pretty much
every multi-threaded system, including RTEMS, vxWorks, pSOS+ (and
even linux/solaris when using multi-threaded applications).

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic31128.pcx
Type: application/octet-stream
Size: 128 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20011005/9f84d7fc/attachment-0001.obj>


More information about the users mailing list