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: Sun, 20 Mar 2011 22:31:20 +0100 Message-ID: <87ipvdzdg7.fsf@gnu.org> References: <87hbbhbb99.fsf@ossau.uklinux.net> <87k4gb99uv.fsf@gnu.org> <87bp18pwbi.fsf@gnu.org> <87mxkp2958.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 1300656703 17290 80.91.229.12 (20 Mar 2011 21:31:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 21:31:43 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 20 22:31:38 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 1Q1QDo-0001Zr-CW for guile-devel@m.gmane.org; Sun, 20 Mar 2011 22:31:36 +0100 Original-Received: from localhost ([127.0.0.1]:44511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1QDn-0000cb-NP for guile-devel@m.gmane.org; Sun, 20 Mar 2011 17:31:35 -0400 Original-Received: from [140.186.70.92] (port=43102 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1QDb-0000VC-NA for guile-devel@gnu.org; Sun, 20 Mar 2011 17:31:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1QDa-00053I-H7 for guile-devel@gnu.org; Sun, 20 Mar 2011 17:31:23 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:53202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1QDa-00053A-AK for guile-devel@gnu.org; Sun, 20 Mar 2011 17:31:22 -0400 Original-Received: from nixey (reverse-83.fdn.fr [80.67.176.83]) (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 01615444D4; Sun, 20 Mar 2011 22:31:20 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?iso-8859-1?Q?Vent=F4se?= 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 "Sun, 20 Mar 2011 16:25:02 +0100") User-Agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (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.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:11929 Archived-At: Hi! Andy Wingo writes: > On Sun 20 Mar 2011 14:50, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >> However, I don=E2=80=99t think defining =E2=80=98%target-type=E2=80=99 w= ould make sense >> since: >> >> 1. Of the GNU triplet, only the $target_arch matters for bytecode; >> >> 2. You can really choose at run-time what target you want to build >> for, by just setting the endianness fluid. What I meant to say here, is that via a couple of knobs akin to =E2=80=98current-target-endianness=E2=80=99, you could actually cross-build= for any target. This is different from Binutils/GCC: a cross-GCC can only cross-build for the target that was specified when that cross-GCC was built. Conversely, a single Guile instance could compile code for any target. Thus =E2=80=98%target-type=E2=80=99 would be inappropriate IMO because the = target could be chosen at run-time and it could be anything. Does that make sense? Besides, the UI could be made familiar. For instance =E2=80=98guile-tools compile --target=3DTRIPLET=E2=80=99 would be fine with= me. > Can I convince you otherwise? Right now it's endianness, but I would > like to hack an ARM native compiler sometime soonish, Ooh, cool! :-) >> Now, if we want to produce something comparable to cross-GCC & >> cross-Binutils[*], we could install, say, arm-linux-gnueabi-guile-tools > > Yes, that sounds good, though I would be happier if we did this simply > with --program-prefix and --target. The prefix is added automatically for cross-Binutils and cross-GCC, hence this example. Thanks, Ludo=E2=80=99.