From owner-freebsd-questions Thu Sep 10 04:01:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA07654 for freebsd-questions-outgoing; Thu, 10 Sep 1998 04:01:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iworks.interworks.org (iworks.interworks.org [128.255.18.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA07626 for ; Thu, 10 Sep 1998 04:01:43 -0700 (PDT) (envelope-from deischen@iworks.interworks.org) Received: (from deischen@localhost) by iworks.interworks.org (8.8.7/8.8.7) id GAA18460; Thu, 10 Sep 1998 06:08:33 -0500 (CDT) Date: Thu, 10 Sep 1998 06:08:33 -0500 (CDT) From: "Daniel M. Eischen" Message-Id: <199809101108.GAA18460@iworks.interworks.org> To: b0l6604@unix.tamu.edu Subject: Re: GNAT cross compiler Cc: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Can GNAT port be used to build a cross compiler? My target is x86 and > Coldfire. I saw GCC cross compiler for Coldfire in the port collection, so > I kinda hope that GNAT port can do the same. No, not without modification. Note that this is not a trival thing to do. GNAT can be built as a cross compiler, and I actually did this for VxWorks targets, but you really have to know what your are doing. You first need to build the GCC cross compiler for x86/Coldfire, and this includes binutils and newlib (for the same target). You can start by trying to modify the crossm68k port to be crossx86. If you get that far, then you'll have to target GNAT for the same target (by default, if GNAT doesn't recognize the configure target, you'll get a GNAT with no run-time, so even the Ada delay statement will not work). Then you'll have to figure out how to add basic run-time support. Dan Eischen deischen@iworks.InterWorks.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message