Minimum stack size?
pmrobert
Posts: 673
Per https://sites.google.com/site/propellergcc/documentation/libraries/propeller-h-library#TOC-cogstart :
Quote:
The stack size must be big enough to hold the struct _thread_state_t, the initial stack frame, and other stack frames used by called functions.
The minimum stack size per thread today is 176 bytes.
End of quote.
I'm using considerably less stack size than that in numerous LMM cogs, never triple digits, measuring stack use by memsetting it before using it and things seem to work fine. Am I just oblivious and lucky or is that reference outdated and/or incorrect?
-Mike
Edit: DISREGARD, please.
Quote:
The stack size must be big enough to hold the struct _thread_state_t, the initial stack frame, and other stack frames used by called functions.
The minimum stack size per thread today is 176 bytes.
End of quote.
I'm using considerably less stack size than that in numerous LMM cogs, never triple digits, measuring stack use by memsetting it before using it and things seem to work fine. Am I just oblivious and lucky or is that reference outdated and/or incorrect?
-Mike
Edit: DISREGARD, please.