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: stack overflow in cygwin_nt-5.0


> -----Original Message-----
> From: cygwin-owner On Behalf Of Marcel Telka
> Sent: 10 November 2004 20:42
> To: cygwin
> Subject: Re: stack overflow in cygwin_nt-5.0

> > >Don't declare huge data structures on the stack.

> > I have to use large matrices (even larger) in my application.
> > So, how to do it?
> 
> malloc() ?


  Or make them static, instead of local variables.

  Or use the compiler flag -Wl,--stack=[big number goes here]

 
    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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