delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/04/08:11:04

From: benson AT healthcare DOT com ("Kirk W. Benson")
Subject: Re: Re[2]: serious bug with CYGNUS GCC b16
4 Dec 1996 08:11:04 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <1.5.4.32.19961204142529.0063e564.cygnus.gnu-win32@vault.healthcare.com>
Mime-Version: 1.0
X-Sender: benson AT vault DOT healthcare DOT com
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

At 09:11 AM 12/4/96 +0100, you wrote:
>
>     
>     Well last night, I have found a solution. I don't know if this is a
>     workaround or a *real* fix but it works.
>     
>     It is true that the stack is limited (but I thought that the linker
>     could expand the stack depending of the program). So the solution is
>     to expand the stack, I have found that in gnat304a (amazing that
>     you mention this since this bug was found using GNAT 3.08 for NT a
>     beta release not yet publicly available) in the specs link section
>     there was a stack paramaters.
>     
>     So to change the stack size you must edit the specs file under
>     ...\lib\gcc-lib\<something>\2.7.2\ and replace (note the replace
>     here) the first line after *link: with -stack 0x300000,0x10000.
>     
>     The first parameters is sizereserve and the second sisecommit. So
>     I have reserved 3 Mo for the stack.
>     
>     So the section should read :
>     
>     *link:
>     -stack 0x300000,0x10000
>     
>     
>     I don't know what the sizecommit parameter is, does somebody know ?
>     

Per MSVC InfoView on Linker Options:

Reserve is the total stack allocation in virtual memory.  Commit is OS
dependent, but for NT it is the amount of physical memory to allocate at a
time.  Committed memory is assigned space in the paging file.  Hence there
is a tradeoff between time to extend the stack vs. memory use and startup time.

---------------------------------------------------------
Kirk W. Benson                 Ph: 214-851-7076
Healthcare Communications Inc. FAX 214-851-7045
15301 Dallas Parkway Ste. 950  email: benson AT healthcare DOT com
Dallas, TX 75248

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019