X-Spam-Check-By: sourceware.org
Message-ID: <cb51e2e0604012048i4e3e3c38g470863d96bfdbd37@mail.gmail.com>
Date: Sat, 1 Apr 2006 20:48:07 -0800
From: "Joshua Daniel Franklin" <joshuadfranklin@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [FAQ alert] RE: segfault on memory intensive programs
In-Reply-To: <065d01c65403$4232d320$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <20060330135049.70352.qmail@web34801.mail.mud.yahoo.com> 	 <065d01c65403$4232d320$a501a8c0@CAM.ARTIMI.COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k324mMuf000654

On 3/30/06, Dave Korn wrote:
>   As to the FAQ entry, it really needs a little alteration.  Ping JDF!
>
>   It should make clear that those parameters are in bytes.  The example of a
> 4k stack and 1k heap is a bit unrealistic and it might be more productive to
> show people how to make exes with /big/ stacks, since that's the problem
> people usually run into.  How about something a bit more like
>
> -------------------------------------------------------------<snip>
> 21.
>
> How can I adjust the heap/stack size of an application?
>
> If you need to change the maximum amount of memory available to Cygwin, see
> http://cygwin.com/cygwin-ug-net/setup-maxmem.html. Otherwise, just pass the
> desired heap/stack size in bytes as linker arguments to gcc. To create foo.exe
> with a heap size of 200MB and a stack size of 8MB, you would invoke gcc as:
>
> gcc -Wl,--heap,200000000,--stack,8000000 -o foo foo.c
> -------------------------------------------------------------<snip>


I'll get to this and the other items soon-ish. I got a cheap laptop on ebay
(but very portable... Dell x200) and just finished getting it set up.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


