From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: advice on reducing C stack frame size? Date: Tue, 16 Sep 2008 19:57:29 +0200 Message-ID: References: <7683D3EC-06F5-407D-B353-E5E7BB1836EA@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221587997 6993 80.91.229.12 (16 Sep 2008 17:59:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 17:59:57 +0000 (UTC) Cc: guile-devel To: Ken Raeburn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 16 20:00:54 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kfer6-0004uQ-Vo for guile-devel@m.gmane.org; Tue, 16 Sep 2008 20:00:53 +0200 Original-Received: from localhost ([127.0.0.1]:57684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfeq5-0000QH-Pz for guile-devel@m.gmane.org; Tue, 16 Sep 2008 13:59:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kfepz-0000Pi-5B for guile-devel@gnu.org; Tue, 16 Sep 2008 13:59:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kfepw-0000P6-F0 for guile-devel@gnu.org; Tue, 16 Sep 2008 13:59:42 -0400 Original-Received: from [199.232.76.173] (port=57285 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfepw-0000P3-5n for guile-devel@gnu.org; Tue, 16 Sep 2008 13:59:40 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:62210 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kfepv-0001KR-F3 for guile-devel@gnu.org; Tue, 16 Sep 2008 13:59:39 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id D9D9E61548; Tue, 16 Sep 2008 13:57:48 -0400 (EDT) Original-Received: from unquote (177.Red-83-34-179.dynamicIP.rima-tde.net [83.34.179.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 508A361546; Tue, 16 Sep 2008 13:57:47 -0400 (EDT) In-Reply-To: <7683D3EC-06F5-407D-B353-E5E7BB1836EA@raeburn.org> (Ken Raeburn's message of "Tue, 16 Sep 2008 01:27:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Pobox-Relay-ID: F95EB22E-8418-11DD-9371-D0CFFE4BC1C1-02397024!a-sasl-fastnet.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7704 Archived-At: Hi, On Tue 16 Sep 2008 07:27, Ken Raeburn writes: > On Sep 13, 2008, at 12:56, Andy Wingo wrote: >> So for example, just sitting at the repl, we have: >> >> #28 0x001c48fc in vm_run (vm=0xb7f1ff58, program=0x8d53df8, >> #29 0x001bfcad in program_apply (program=0xb7ee2730, args=0x404) at >> >> The difference between #29 and #28 is the size of the vm_run() stack >> frame (I think). > > Aren't those the program counter addresses you're looking at? Probably so, stupid me. Showing my ignorance in public. They give us git-rebase so our patches can be perfect once pushed -- but nothing for mailing lists! ;) > Try "print $sp" or "info reg" at each frame to see the stack pointer. Thanks! Andy -- http://wingolog.org/