delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/05/00:11:52

X-Spam-Check-By: sourceware.org
Message-ID: <cb51e2e0604042111m6c48486dk1639dbbdb4e04895@mail.gmail.com>
Date: Tue, 4 Apr 2006 21:11:39 -0700
From: "Joshua Daniel Franklin" <joshuadfranklin AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [FAQ alert] RE: segfault on memory intensive programs
In-Reply-To: <cb51e2e0604012048i4e3e3c38g470863d96bfdbd37@mail.gmail.com>
MIME-Version: 1.0
References: <20060330135049 DOT 70352 DOT qmail AT web34801 DOT mail DOT mud DOT yahoo DOT com> <065d01c65403$4232d320$a501a8c0 AT CAM DOT ARTIMI DOT COM> <cb51e2e0604012048i4e3e3c38g470863d96bfdbd37 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k354BnYc016288

On 4/1/06, Joshua Daniel Franklin wrote:
> 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>

OK, checked in, but I didn't update the website.

--
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/


- Raw text -


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