On Tue, Mar 19, 2002 at 12:55:40PM +0200, Stass Desyatnikov wrote:
> The what_is_a_stack_pointer_anyway function will work.
> But if your function has parameters this won't be true.
What do you think will be untrue?
Certainly in the presence of stack-based parameters or other stack-based
local variables or random stack fluctuations during expression
evaluation, the value returned may not point to anything in particular
or be exactly "correct" at some later point in time. But I would
suggest that if you were expecting some precise value for the stack
pointer, your expectations were too high.
Unless you write sentinels to the entire stack chunk, cross your
fingers, and check your sentinels later (by reading memory that Poser
doesn't like you to look at), it's very hard to do better than "well, it
was here when we sampled it, so we're using about this much". That's
why I gave the function the name I did. :-)
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/