Shop OBEX P1 Docs P2 Docs Learn Events
Minimum stack size? — Parallax Forums

Minimum stack size?

pmrobertpmrobert Posts: 673
edited 2014-08-05 14:52 in Propeller 1
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.
Sign In or Register to comment.