This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
stack usage
- From: Aravind B <arvindb at cranessoftware dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: 22 Mar 2004 17:24:20 +0530
- Subject: [ECOS] stack usage
hi,
i have problem with cyg_thread_measure_stack_usage().
i have written a code with 4 threads.
I have used printf("ThreadB %d\n",cyg_thread_measure_stack_usage(
handleB)) in each thread to measure the thread stack usage.
First thread gives 100
second,third and fourth threads gives 80 .
My problem is in the third thread i have defined short variable.
Inspite of it is giving value 80 as 2 and 4 thread.
2 and 4 thread is defined as
void procedureB(cyg_addrword_t data)
{
printf("ThreadB %d\n",cyg_thread_measure_stack_usage( handleB));
}
Is there any solution for this.
thanking in advance
regards
aravind B
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss