[ECOS] Adjusting stack sizes

Rafael Rodríguez Velilla rrv@tid.es
Thu Aug 30 02:58:00 GMT 2001


"Simpkins, Andy" wrote:

> I assume that you mean whilst the thread is active?  I am not sure that that
> can be done (simply)...
>
> However if you mean before you create the thread (which I am sure you don't)
> then the stack size is specified as part of cyg_thread_create

   I don't want to create a thread that adjusts its stack size at run time. I
want to create applications with threads that don't use too much thread stack
space, so I'd want to know how do the others calculate the space required by a
thread.

  I have seen a member "stack_limit" and two methods "increment_stack_limit"
and "get_stack_limit" in the Cyg_Thread class that I think that are supposed to
help the developers adjust their stacks doing some kind of run-time
simulation... but I don't know how to use that.



--
Rafael Rodríguez Velilla        rrv@tid.es
Telefónica I+D          http://www.tid.es
Telf: +34 - 91 337 4270





More information about the Ecos-discuss mailing list