--- Max Bian wrote:
> 
> I am trying to do the evil things again
> ...
> My question is, how to figure out how much 
> stack is needed for each recursion in PalmOS? 
> Is that just the sum of all parameters
> passed, all value returned and all local 
> variables?

I don't know enough about the compiler to give a
definitive answer, but your guess is probably very
close to correct.  You can use SysGetStackInfo() to
see exactly how much stack space is used by each call.

If you write your recursive search properly, you
should be able to know the maximum number of times it
can be called given a maximum number of items to
search through.


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to