From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: stack size info Date: Tue, 20 Mar 2007 14:22:14 +0100 (CET) Message-ID: <5308249.137871174396934265.JavaMail.www@wwinf4205> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174396948 4088 80.91.229.12 (20 Mar 2007 13:22:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Mar 2007 13:22:28 +0000 (UTC) To: "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 20 14:22:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HTeIB-0005zM-1r for ged-emacs-devel@m.gmane.org; Tue, 20 Mar 2007 14:22:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTeJj-0007xs-Qy for ged-emacs-devel@m.gmane.org; Tue, 20 Mar 2007 08:23:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTeJg-0007xS-1l for emacs-devel@gnu.org; Tue, 20 Mar 2007 09:23:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTeJe-0007uL-UZ for emacs-devel@gnu.org; Tue, 20 Mar 2007 09:23:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTeJe-0007td-Ln for emacs-devel@gnu.org; Tue, 20 Mar 2007 08:23:54 -0500 Original-Received: from smtp3.voila.fr ([193.252.22.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HTeI4-0001L5-TM for emacs-devel@gnu.org; Tue, 20 Mar 2007 09:22:17 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4202.voila.fr (SMTP Server) with ESMTP id 513261C000BD for ; Tue, 20 Mar 2007 14:22:14 +0100 (CET) Original-Received: from wwinf4205 (wwinf4205 [10.232.2.32]) by mwinf4202.voila.fr (SMTP Server) with ESMTP id 43D881C000B2 for ; Tue, 20 Mar 2007 14:22:14 +0100 (CET) X-ME-UUID: 20070320132214278.43D881C000B2@mwinf4202.voila.fr X-Originating-IP: [89.34.170.37] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-REPLYTO: |~| X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68157 Archived-At: 16.7 Byte-Code Function Objects =============================== STACKSIZE The maximum stack size this function needs. ------------------------------ (defun p (n) "sum" (if (> n 1) (+ n (p (1- n))) n)) (byte-compile 'p) (symbol-function 'p) #[(n) "..." [n 1 p] 3 <=<= here is the stack size. "sum"] But I believe that a recursive function has the stack greater, 3*n, not 3. For every recursion I believe that the stack size get greater with 3, so the stack is dependent of n. Is it true? Is this a little error of explanation in INFO file?