From: mcneils AT applique DOT sedd DOT trw DOT com (Sean McNeil) Subject: stack size (was Re[2]: serious bug with CYGNUS GCC b16) 4 Dec 1996 17:33:02 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199612050045.QAA10067.cygnus.gnu-win32@app006221.sedd.trw.com> Original-To: benson AT healthcare DOT com Original-Cc: gnu-win32 AT cygnus DOT com In-Reply-To: <1.5.4.32.19961204142529.0063e564@vault.healthcare.com> (benson AT healthcare DOT com) Original-Sender: owner-gnu-win32 AT cygnus DOT com This explains a question I was getting ready to pose. Apparantly, gcc adds stack probing whenever allocating large (>4k) space on the stack. I thought that this would extend the stack. I guess it does assist in doing so by increments of sizecommit, but will not extend past sizereserve. So, I need to set the sizereserve to something nice and large. As mentioned, this is done with the -stack option to ld and can be made a default option when linking with gcc. Thanks for the info. - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".