Tamas Rudnai gmail.com> writes: > > Would you (in the case you sketch) sleep well with a stack allocated > > based on your assumption? "stack allocation" is really bad news for any program that heavily relies on recursion to do its job. In this case it may be better to have a stack that grows upwards because the size of the heap can be predicted better than the size of the stack. I have had programs that went several tens of millions of recusions deep on x86 32 bits. I do not know why they worked :) For most normal heap/stack assumptions they should have failed. Apparently having virtual memory and a stack segment that lives in its own vm space is vey helpful ... Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist