Thread View: comp.os.os2.programmer
1 messages
1 total messages
Started by Glen Herrmannsfeldt
Wed, 22 Jul 1992 18:38
stack size
Author: Glen Herrmannsfeldt
Date: Wed, 22 Jul 1992 18:38
Date: Wed, 22 Jul 1992 18:38
26 lines
1352 bytes
1352 bytes
link386 seems to have a 2k default stack. I just finished a series of bug reports to bug-gcc that I finally decided were due to too small a stack. I call to getchar() would write over parts of program memory. Then I tried different stack sizes with link386. 4k, 256k, 4MB, 64MB, 1GB, 256MB. Up to 64MB ran fine, fast, etc. Apparently it does not need to allocate the whole thing in real or swap space. At 1GB it refused to load. At 256MB it got an internal processing error, which, if I figure out how, I will report to IBM. (Any one from IBM? How do I do this?) It seems that there is little penalty for a big stack, and a large penalty (clobbered memory) for a small stack. Why not have a big default stack? Has anyone else experienced any of this? Remember, a call to getchar() and nothing else will overflow a 2K stack!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads