From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Neil Jerram" Newsgroups: gmane.lisp.guile.devel Subject: Re: Stack calibration Date: Tue, 30 Sep 2008 23:11:38 +0100 Message-ID: <49dd78620809301511p43d52486la8a9f1c80702fb82@mail.gmail.com> References: <47B2A8DF.9070004@tammer.net> <87wsp83807.fsf@ossau.uklinux.net> <871w7fore8.fsf@gnu.org> <66e540fe0802140226k3cd96c46x286ac753bbb2b8b7@mail.gmail.com> <87ejbfg4pr.fsf@gnu.org> <66e540fe0802140339n2121e1d9y85fcc9f019d8be0f@mail.gmail.com> <87prukog9w.fsf@ossau.uklinux.net> <87hc8lw0q2.fsf_-_@gnu.org> <49dd78620809271120j17097ffq4da8f2b8dffd4efd@mail.gmail.com> <87y71cdofb.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1222812720 24422 80.91.229.12 (30 Sep 2008 22:12:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 22:12:00 +0000 (UTC) Cc: guile-devel@gnu.org To: "=?ISO-8859-1?Q?Ludovic_Court=E8s?=" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 01 00:12:58 2008 connect(): Connection refused 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 1KknSc-00028u-B1 for guile-devel@m.gmane.org; Wed, 01 Oct 2008 00:12:50 +0200 Original-Received: from localhost ([127.0.0.1]:48594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KknRZ-0002Ov-E3 for guile-devel@m.gmane.org; Tue, 30 Sep 2008 18:11:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KknRV-0002Oq-6S for guile-devel@gnu.org; Tue, 30 Sep 2008 18:11:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KknRT-0002Oe-P0 for guile-devel@gnu.org; Tue, 30 Sep 2008 18:11:40 -0400 Original-Received: from [199.232.76.173] (port=35952 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KknRT-0002Ob-Mn for guile-devel@gnu.org; Tue, 30 Sep 2008 18:11:39 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.245]:37854) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KknRT-00058M-G6 for guile-devel@gnu.org; Tue, 30 Sep 2008 18:11:39 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so260126rvb.6 for ; Tue, 30 Sep 2008 15:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pygliWciCVG4Yn3s0nYM2m8B/lNklVTm++e5zNW4wX0=; b=mLvOTPhYoJeyFUevZCRKd+b4KegZ9RTqNVbU8cRFlmGsbA2fHwZAh/REVn+2rOZU+N 4nMtZkon48vbHKboRmPj+wnZ58a7X9OEwRgp+VyK/sjL1guqcWdsPW3Pc0CE2n54ahz5 ZxRkCK+T0RPfnSs9vGXz9pZpTY1L9QXU3/y4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iY2Gqot6JnGIdnPshtLLLDGV0vivxgKzyWQm4IhCXxa7fMeZuV5AgJJ9iyevQ8++m0 p8i1Kg2oSuNaeKXnS280sl+Tod0mO7n9diKOd6HGWtRqswMMcSa7LNsFU+M//P7vc6aa sxz24wxa8k1BDjjlSrYLDk4HtmT9vRZpY33HE= Original-Received: by 10.140.132.3 with SMTP id f3mr3906249rvd.71.1222812698274; Tue, 30 Sep 2008 15:11:38 -0700 (PDT) Original-Received: by 10.140.142.15 with HTTP; Tue, 30 Sep 2008 15:11:38 -0700 (PDT) In-Reply-To: <87y71cdofb.fsf@gnu.org> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:7750 Archived-At: 2008/9/28 Ludovic Court=E8s : > One last thing... > > "Neil Jerram" writes: > >> @@ -81,6 +106,15 @@ scm_stack_report () >> void >> scm_init_stackchk () >> { >> +#ifdef GUILE_CALIBRATION_MEASURED_DEPTH_1 >> + /* Calculate calibrated stack depth limit. */ >> + calibrated_m =3D ((double) (GUILE_CALIBRATION_MEASURED_DEPTH_2 - GUIL= E_CALIBRATION_MEASURED_DEPTH_1)) >> + / (GUILE_CALIBRATION_REFERENCE_DEPTH_2 - GUILE_CALIBRATION_REFERENC= E_DEPTH_1); >> + calibrated_c =3D ((double) GUILE_CALIBRATION_MEASURED_DEPTH_2) >> + - calibrated_m * GUILE_CALIBRATION_REFERENCE_DEPTH_2; >> +#endif >> + scm_calculate_stack_limit (); >> + >> #include "libguile/stackchk.x" >> } > > I'd like it better it these were statically initialized. Good idea, I'll do that. Neil