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: Cross-compiling Guile 2.0 Date: Mon, 21 Mar 2011 21:42:31 +0100 Message-ID: References: <87hbbhbb99.fsf@ossau.uklinux.net> <87k4gb99uv.fsf@gnu.org> <87bp18pwbi.fsf@gnu.org> <87mxkp2958.fsf@gnu.org> <87ipvdzdg7.fsf@gnu.org> <87ipvcmeim.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300740169 25380 80.91.229.12 (21 Mar 2011 20:42:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 20:42:49 +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 Mon Mar 21 21:42:44 2011 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.69) (envelope-from ) id 1Q1lw4-0001UM-8j for guile-devel@m.gmane.org; Mon, 21 Mar 2011 21:42:44 +0100 Original-Received: from localhost ([127.0.0.1]:55447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1lw3-0006UT-Ia for guile-devel@m.gmane.org; Mon, 21 Mar 2011 16:42:43 -0400 Original-Received: from [140.186.70.92] (port=49521 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1lvm-0006SN-9I for guile-devel@gnu.org; Mon, 21 Mar 2011 16:42:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1lvi-00021b-3H for guile-devel@gnu.org; Mon, 21 Mar 2011 16:42:26 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:57218 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1lvi-00021R-0z; Mon, 21 Mar 2011 16:42:22 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4F59F4A93; Mon, 21 Mar 2011 16:44:00 -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=7f2ImeO3GJ6O XLIM8kZ2YWJdpX4=; b=tZ/fBv+1NgyScEtvyo6oOjoQBdSgKEbGeuo5o5NmUJit TvAJE4KQXwbUUvA3g6zjCaRUv4cRDnhtrJuYipChWiS+blRS75KdaAlmPrivt9xd IpKkaX7vvYQBNdesuwEhk6aaQMZXaYRNeEHgYnU/8laQoadgJUaE4gQTE59uO7M= 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=OsqlV5 F3DQu18W3OP7wUOwlf5AgvPjUSkoAngHRRvQXKBKp7CBMMqday837PyaDcGN+hFf 8LatafmDLN10ulNMu5/jL6IWVsxGpjcfbrUylfa9UfV058T5Uuf/1oYMdpz7jVnN aSC0VzUsar9D97E4fHIrl9oZ1ffPP7kR90hDc= 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 3B3B84A91; Mon, 21 Mar 2011 16:43:58 -0400 (EDT) Original-Received: from unquote.localdomain (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 798BF4A8B; Mon, 21 Mar 2011 16:43:56 -0400 (EDT) In-Reply-To: <87ipvcmeim.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 21 Mar 2011 20:58:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: F1E69646-53FB-11E0-BCF5-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:11947 Archived-At: On Mon 21 Mar 2011 20:58, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > At some point there will have to be a triplet =E2=86=92 arch =E2=86=92 en= dianness > conversion. Indeed. > I=E2=80=99d rather have that conversion occur as close to the UI as > possible=E2=80=94i.e., close to =E2=80=98scripts/compile.scm=E2=80=99=E2= =80=94rather than deep down in > (system base compile) because the triplet string is really a UI notion IM= O. Actually I think it's more fundamental than that. The compilation process tries, generically, to find a path through the language tower path from the source language to the target language. There is nothing bytecode-specific in (scripts compile), except for a couple default target languages. It seems to me that the value of the target-type fluid at the time that `compile-passes' is called should be what determines the compilation path and target-specific settings. For example, to continue the ARM compilation example, perhaps it would cause a different target language to be selected. Dunno. All of that could just be too complicated, and maybe you are right. Andy --=20 http://wingolog.org/