This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [FAQ alert] RE: segfault on memory intensive programs


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]