Hi Giovanni,
I want to know how we can determine the minimum a thread size so that we just use the amount of memory needed?
Is there also a maximum while creating a thread?
Thank you.
Thread Size
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Thread Size
Hi,
The debug plugin in ChibiStudio is able to report the amount of stack used, you may use the information to optimize the size. You need to activate the stack filling option in chconf.h.
Giovanni
The debug plugin in ChibiStudio is able to report the amount of stack used, you may use the information to optimize the size. You need to activate the stack filling option in chconf.h.
Giovanni
Re: Thread Size
Thanks for your answer Giovanni.
But I'm sorry, I'm not using ChibiStudio. My configuration is Ubuntu + Makefile + ChibiOS/RT.
So in this case is there a way do have the same functionality as your debug plugging for example or any other way?
But I'm sorry, I'm not using ChibiStudio. My configuration is Ubuntu + Makefile + ChibiOS/RT.
So in this case is there a way do have the same functionality as your debug plugging for example or any other way?
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times