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: wip-rtl status Date: Tue, 05 Jun 2012 10:04:43 +0200 Message-ID: <874nqqmbfo.fsf@pobox.com> References: <874nqsnken.fsf@pobox.com> <877gvoqb8v.fsf@gnu.org> <87wr3nmotu.fsf@pobox.com> <87aa0i7pe5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338883507 21193 80.91.229.3 (5 Jun 2012 08:05:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2012 08:05:07 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jun 05 10:05:06 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SbolF-0006oO-VR for guile-devel@m.gmane.org; Tue, 05 Jun 2012 10:05:06 +0200 Original-Received: from localhost ([::1]:33619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbolF-0004Ep-Fr for guile-devel@m.gmane.org; Tue, 05 Jun 2012 04:05:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbol7-0004De-VD for guile-devel@gnu.org; Tue, 05 Jun 2012 04:05:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sbol1-0002Yv-LN for guile-devel@gnu.org; Tue, 05 Jun 2012 04:04:57 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:61614 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbol1-0002Yl-Cj; Tue, 05 Jun 2012 04:04:51 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 5185C9EAD; Tue, 5 Jun 2012 04:04:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=FyBcwdax/Qnv 7VXNtSaPXAhLehE=; b=dnhymQEKUCs2/y2FSiMsup6B4voRDViG2EaHSgZN8kWU unDKCA8+82foxGa0ysjhiVww6fFDMMmACxJL4SAOU23aZ4b0UJ+B3tQKj/NtSEr4 McibzG1BXF51X58WGNqFrXkI6+clQ2lwJsyRH2zKlZwDTinSTn4iLAQoCEuTwxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=VJOSx+ EV/VK3sjKcdWc1OzaQWbO1SB4jOibQ2xI6BHLVXVD++3F4PCQnOms0ZVzYHucLY8 kL9cdLM5Iby4OfXDG8DYzVRRtmMIRCzkKOCcrVzZqSXBkfA9IG0FIpEo+iD3qoS9 AeDtpyu17PSQdrBixrFWFS8O0eSDB/2BlrbJM= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 49E819EAC; Tue, 5 Jun 2012 04:04:47 -0400 (EDT) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 95C289EA9; Tue, 5 Jun 2012 04:04:46 -0400 (EDT) In-Reply-To: <87aa0i7pe5.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 04 Jun 2012 23:12:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Pobox-Relay-ID: 1DBFAC0E-AEE5-11E1-B96E-E981AF15ED39-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14556 Archived-At: On Mon 04 Jun 2012 23:12, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo skribis: > >> However something like '(1 . (2 . ())) has two pairs: the tail which has >> two immediates, and the head that has an immediate in the car but a >> pointer in the cdr. In that case you need to patch up the cdr to point >> to the tail, after you load the .go (or .so?) file. > > Actually, it could typically be patched by the loader, just like what > happens with the variables emitted by =E2=80=98SCM_IMMUTABLE_STRING=E2=80= =99 and such, no? > > (Hmm, perhaps that=E2=80=99s what you meant?) Yes, that is what I meant. Either you emit relocations into the ELF file, and rely on the dynamic loader to interpret them, or you compile a procedure to do the relocations and call it as an init function. Wip-rtl does the latter, because that way we can also do one-time initializations like string->symbol, string->number, etc. Andy --=20 http://wingolog.org/