No it does not. Strictly speaking, the Propeller chip doesn't have a stack. The Spin interpreter is a program built into the ROM that interprets byte code instructions for a stack machine. In any event, the interpreter only checks for underflow. You can do your own near-overflow checking by getting the address of a local variable in some method and comparing it to the end of the stack. For example:
PRI checkStack | local
if $8000 - @local < 256
abort ' There are less than 256 bytes left in the main stack
Comments