From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Enlarge MAX_ALLOCA? Date: Fri, 20 Jun 2014 11:56:30 +0300 Message-ID: <83a998rmbl.fsf@gnu.org> References: <83sin0sx98.fsf@gnu.org> <87bnto98ch.fsf@fencepost.gnu.org> <53A3F2EB.80005@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1403254636 2965 80.91.229.3 (20 Jun 2014 08:57:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 08:57:16 +0000 (UTC) Cc: dak@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 20 10:57:07 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wxud6-0002ob-66 for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2014 10:57:04 +0200 Original-Received: from localhost ([::1]:39628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxud5-0004EM-RZ for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2014 04:57:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxucy-0004EF-Fg for emacs-devel@gnu.org; Fri, 20 Jun 2014 04:57:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxuct-0007lV-31 for emacs-devel@gnu.org; Fri, 20 Jun 2014 04:56:56 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:43502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxucn-0007ka-2u; Fri, 20 Jun 2014 04:56:45 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N7G00J00LNJ6700@a-mtaout21.012.net.il>; Fri, 20 Jun 2014 11:56:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7G00IHKM6JY6A0@a-mtaout21.012.net.il>; Fri, 20 Jun 2014 11:56:43 +0300 (IDT) In-reply-to: <53A3F2EB.80005@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172556 Archived-At: > Date: Fri, 20 Jun 2014 12:38:03 +0400 > From: Dmitry Antipov > Cc: David Kastrup , emacs-devel@gnu.org >=20 > On 06/19/2014 10:21 PM, Stefan Monnier wrote: >=20 > >> 64kB feels arbitrary. I cannot really think of an architecture = where > >> 64kB would be feasible and 128kB not. =B132kB is a plausible of= fset for > >> some architectures. > > > > This has nothing to do with machine architectures. > > It's only related to the OS chosen size of the stack. >=20 > IIUC this means that if alloca is limited to < 32K, stack may be ex= panded > with just one instruction because increment fits into an immediate = operand. > Otherwise there should be a few more load/store/add instructions. OK, but is that worse than using xmalloc in that case?