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 30 March 2006 15:49, Pete wrote:

> --- Dave Korn <dave.korn@artimi.OI!> wrote:

  Pete, please don't do ^^^^^^^^^^ that.  If you quote someone's email address
in raw text, it gets archived on the mailinglist web archive, and then
spam-harvesters get it, and then that person gets a BOATLOAD more spam.
Please read http://cygwin.com/acronyms#PCYMTNQREAIYR for more.

> BTW, is there a corresponding way of specifying the
> stack size using registry settings?  That link only
> mentions heap settings.

  Not that I know of.

> I implement large financial models, and will need a
> larger stack for everything I do.  It would be nice to
> set it in the registry once rather than put the same
> LDFLAG variable in every Makefile I write (and comment
> it out when I take my code home to work on it at night
> on my Linux box).

  Well, if it was a registry setting then your binaries wouldn't run on any
other pc without editing the registry of that pc as well, so it's just as well
that stack size is specified in the headers in the .exe rather than in every
single machine that ever needs to run the exe.

  It's also not recommended programming style to place huge objects on the
stack.  For best results they should be static or malloced.

  But this is all generic programming advice and nothing to do with cygwin per
se, so it's getting off-topic now.

    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]