From owner-freebsd-hackers Fri Jul 12 9:40:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBA9137B400 for ; Fri, 12 Jul 2002 09:40:38 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23F1543E65 for ; Fri, 12 Jul 2002 09:40:38 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g6CGeMxI097463; Fri, 12 Jul 2002 11:40:22 -0500 (CDT) (envelope-from dan) Date: Fri, 12 Jul 2002 11:40:22 -0500 From: Dan Nelson To: Yar Tikhiy Cc: hackers@FreeBSD.ORG Subject: Re: Large variables on stack Message-ID: <20020712164022.GA12632@dan.emsphone.com> References: <20020712194809.A62768@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020712194809.A62768@comp.chem.msu.su> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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