Thank you.
I tried it and got for this function
void DoTestFS()
{
int err=0 ;
const char *filePath ;
char buf[80] ;
clock_t t0, t1 ;
//...
}
this warning: "Warning. Function DoTestFS() uses 80 bytes of stack"
All variables are used, so the report is a bit strange.
Moreover this procedure has only limited meaning because it checks single
function. If we have a complex call tree, then this information is not
sufficient. Would be great if you could explain more. (I have fresh
experience by hunting a stack error in the armlet. Took me quite some time
until I discovered the reason.)
Jan Slodicka
----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 11:03 PM
Subject: Re: Changing the stack size w/ CW9
> At 22:45 2003-1-22 +0100, you wrote:
> >Is there any possibility to monitor the available stack size?
>
> You can see the amount of stack each function in a file uses by adding the
line
>
> #pragma warn_stack_usage 1
>
> to the top of your file, and then compiling it.
>
> --
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Palm OS programming help @ www.palmoswerks.com
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/