From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Mundell Newsgroups: gmane.emacs.devel Subject: Re: Compilation to native Date: 16 Apr 2004 16:06:41 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87y8owc67y.fsf@sno.mundell.ukfsn.org> References: <87eks0654s.fsf@sno.mundell.ukfsn.org> <87n06bp4ng.fsf@sno.mundell.ukfsn.org> <877jxccutf.fsf@sno.mundell.ukfsn.org> <87k712gesk.fsf@sno.mundell.ukfsn.org> <87k70lhrsq.fsf@sno.mundell.ukfsn.org> <87wu4jrf3j.fsf@sno.mundell.ukfsn.org> <87d66bg55g.fsf-monnier+emacs@gnu.org> <20040413205156.GA15097@fencepost> <87k70gdmvi.fsf@sno.mundell.ukfsn.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082128143 17419 80.91.224.253 (16 Apr 2004 15:09:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2004 15:09:03 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Miles Bader Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 16 17:08:51 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEUxX-0004w3-00 for ; Fri, 16 Apr 2004 17:08:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEUxW-0007Jl-01 for ; Fri, 16 Apr 2004 17:08:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BEUwZ-0007m3-8R for emacs-devel@quimby.gnus.org; Fri, 16 Apr 2004 11:07:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BEUw5-0007jD-Jw for emacs-devel@gnu.org; Fri, 16 Apr 2004 11:07:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BEUvU-0007Sl-Kj for emacs-devel@gnu.org; Fri, 16 Apr 2004 11:07:16 -0400 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BEUvU-0007SI-39; Fri, 16 Apr 2004 11:06:44 -0400 Original-Received: from localhost (lucy.ukfsn.org [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id 1051BE6E01; Fri, 16 Apr 2004 16:03:49 +0100 (BST) Original-Received: from mail.ukfsn.org ([127.0.0.1]) by localhost (lucy.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26702-18; Fri, 16 Apr 2004 16:03:48 +0100 (BST) Original-Received: from sno.mundell.ukfsn.org (dsl213-218-238-16.as15444.net [213.218.238.16]) by mail.ukfsn.org (Postfix) with ESMTP id 9A4D0E6D7E; Fri, 16 Apr 2004 16:03:48 +0100 (BST) Original-Received: from sno.mundell.ukfsn.org ([10.0.0.3]) by sno.mundell.ukfsn.org with esmtp (Exim 3.36 #1 (Debian)) id 1BEUvS-0000pE-00; Fri, 16 Apr 2004 16:06:42 +0100 Original-To: Stefan Monnier In-Reply-To: Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21773 Stefan Monnier writes: > > Do the 1 and 2 byte constants for stack_ref, stack_set and stack_set2 > > cater for the maximum size of the stack? Fbyte_code's maxdepth > > parameter is a Lisp_Int, which suggests that the stack can be at least > > as large as can be held in 29 bits. Is there perhaps some other > > restriction on the stack size? > > The "stack" in Fbyte_code is really just the activation frame: every time > you enter a new byte-coded function, a new "stack" is created (allocated on > the C stack via alloca). > So it's extremely unlikely that maxdepth will ever be anywhere near > 2^29. OK, so only something like inlined recursion would use those depths, and even stack_ref's one byte is likely to cover the depths used in every function.