From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1c1777afc7d72d155cf0b95c13df7021@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] which register is used as FP on the x86 From: Charles Forsyth Date: Sat, 26 Jun 2004 18:31:49 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-cjjarajlqdxnemxnktiijbayvx" Topicbox-Message-UUID: af10efac-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-cjjarajlqdxnemxnktiijbayvx Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit the function that owns them knows it creates them, and can modify its behaviour accordingly, rather than pushing the requirement everywhere. --upas-cjjarajlqdxnemxnktiijbayvx Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by lavoro; Sat Jun 26 15:29:21 BST 2004 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 77DF219F39 for ; Sat, 26 Jun 2004 10:28:12 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (neuromancer.cse.psu.edu [130.203.4.2]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 87FEA19B01 for <9fans@cse.psu.edu>; Sat, 26 Jun 2004 10:28:00 -0400 (EDT) Received: from mail.cse.psu.edu ([130.203.4.6]) by localhost (neuromancer [130.203.4.2]) (amavisd-new, port 10024) with LMTP id 19749-01-4 for <9fans@cse.psu.edu>; Sat, 26 Jun 2004 10:27:59 -0400 (EDT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.246]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 4B75719AEA for <9fans@cse.psu.edu>; Sat, 26 Jun 2004 10:27:59 -0400 (EDT) Received: by mproxy.gmail.com with SMTP id w41so396365cwb for <9fans@cse.psu.edu>; Sat, 26 Jun 2004 07:27:58 -0700 (PDT) Received: by 10.38.79.55 with SMTP id c55mr64916rnb; Sat, 26 Jun 2004 07:27:58 -0700 (PDT) Message-ID: Date: Sat, 26 Jun 2004 10:27:53 -0400 From: Latchesar Ionkov To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] which register is used as FP on the x86 In-Reply-To: <90a3e63881750a184ef8b70e226c99ae@vitanuova.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <90a3e63881750a184ef8b70e226c99ae@vitanuova.com> X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu Errors-To: 9fans-bounces+forsyth=terzarima.net@cse.psu.edu This approach doesn't work if the compiler supports variable length arrays. Fortunately (or unfortunately, depending on your preferences) the Plan9 compiler doesn't suport them. Thanks, Lucho On Fri, 25 Jun 2004 18:53:48 +0100, rog@vitanuova.com wrote: > > no register is dedicated as a frame pointer. > > if you know the PC, you can find out the FP from the SP. > > --upas-cjjarajlqdxnemxnktiijbayvx--