Date: Fri, 12 Jul 2002 11:40:22 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Yar Tikhiy <yar@comp.chem.msu.su> Cc: hackers@FreeBSD.ORG Subject: Re: Large variables on stack Message-ID: <20020712164022.GA12632@dan.emsphone.com> In-Reply-To: <20020712194809.A62768@comp.chem.msu.su> References: <20020712194809.A62768@comp.chem.msu.su>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 12), Yar Tikhiy said: > Hi there, > > As I see, there are many spots in the FreeBSD userland sources where > multi-kilobyte automatic variables (e.g., string buffers) are used. > I've been taught that such variables would better be static or > allocated on heap. > > So the following question comes to my mind: To stay portable to a > reasonable degree, how large on-stack variables can be used? I think most OSes default to an 8MB stack (at least a quick survey of the ones here do). FreeBSD seems to default to 64MB. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020712164022.GA12632>