From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Cross-compiling Guile 2.0 Date: Fri, 27 May 2011 16:51:28 +0200 Message-ID: <87pqn4kxhr.fsf@gnu.org> 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 1306507903 8567 80.91.229.12 (27 May 2011 14:51:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 14:51:43 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 27 16:51:39 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPyO2-0003pD-Gy for guile-devel@m.gmane.org; Fri, 27 May 2011 16:51:38 +0200 Original-Received: from localhost ([::1]:41865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPyO2-0001Gb-6U for guile-devel@m.gmane.org; Fri, 27 May 2011 10:51:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPyNz-0001GW-2l for guile-devel@gnu.org; Fri, 27 May 2011 10:51:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPyNy-0000lt-3p for guile-devel@gnu.org; Fri, 27 May 2011 10:51:35 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:38951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPyNx-0000lp-UW for guile-devel@gnu.org; Fri, 27 May 2011 10:51:34 -0400 Original-Received: from nixey (unknown [193.50.110.208]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: lcourtes) by smtp.fdn.fr (Postfix) with ESMTPSA id E2B9244237; Fri, 27 May 2011 16:51:32 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Prairial an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Andy Wingo's message of "Fri, 27 May 2011 16:32:47 +0200") User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 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:12545 Archived-At: Hello! Andy Wingo skribas: > After having read "Using System Type" again in the autoconf manual, I am > convinced again that the right thing to do is to add a %target-type > fluid or mutable parameter, defaulting to the %host-type. We select how > to compile for the target by making decisions based on %target-type. > Since in Guile those decisions don't currently need to be made anywhere > except in compile-bytecode.scm and in bytecode->objcode in objcodes.c, > this is easy. In the future when the %target-type could select an > entirely different assembler et al, the "where" of the decisions could > be moved somewhat; but I think that the mechanism sounds right to me. Sounds good, but you=E2=80=99d need additional data that maps triplets (wel= l, $host_cpu) to low-level info such as endianness and word size, right? Thanks, Ludo=E2=80=99.