From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA31624; Wed, 16 Apr 2003 21:22:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA31575 for ; Wed, 16 Apr 2003 21:22:14 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3GJLgX29538; Wed, 16 Apr 2003 21:21:42 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA31368; Wed, 16 Apr 2003 21:21:41 +0200 (MET DST) Date: Wed, 16 Apr 2003 21:21:41 +0200 From: Xavier Leroy To: Andy Chou Cc: caml-list@inria.fr Subject: Re: [Caml-list] cross compilation Message-ID: <20030416212141.C30839@pauillac.inria.fr> References: <20030415191841.GA9930@Xenon.Stanford.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030415191841.GA9930@Xenon.Stanford.EDU>; from acc@CS.Stanford.EDU on Tue, Apr 15, 2003 at 12:18:41PM -0700 X-Spam: no; 0.00; caml-list:01 gcc:01 ocamlopt:01 gillot:01 cgillot:01 compiler:01 suffice:01 trivial:01 structuring:02 native:02 linking:02 o'caml:02 compilation:04 probably:05 i'm:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Is there any support for cross-compilation for the native code compiler? > Interpretation simply won't cut it for the application I'm working with. > > The native code compiler can generate code for many different > architectures, and it appears that most of the codegen is written in > O'Caml itself. gcc has support for cross-compilation/linking. Putting > these together, virtually all of the work has been done. Is there > anything to it other than properly structuring the configuration and > build? I believe "properly structuring the configuration and build" should suffice to get ocamlopt to cross-compile, however this is probably not trivial. Christian Gillot did a cross-compiler for the ARM, see http://www.neo-rousseaux.org/cgillot/en/ocamlhacks.html but he didn't detail the build process... - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners