From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id DBB7BBBAF for ; Sun, 5 Apr 2009 23:08:14 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABe62ElQRFuwYGdsb2JhbACWGxcLEBKxT4QPBg X-IronPort-AV: E=Sophos;i="4.39,327,1235948400"; d="scan'208";a="25684393" Received: from furbychan.cocan.org ([80.68.91.176]) by mail3-smtp-sop.national.inria.fr with ESMTP; 05 Apr 2009 23:08:14 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1LqZZd-0007g9-NG; Sun, 05 Apr 2009 22:08:13 +0100 Date: Sun, 5 Apr 2009 22:08:13 +0100 To: Florian Hars Cc: Jean Guyader , caml-list@yquem.inria.fr Subject: Re: [Caml-list] 64 bits ocamlopt to generate 32 bits code Message-ID: <20090405210813.GB22985@annexia.org> References: <49D6878D.1040706@bik-gmbh.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49D6878D.1040706@bik-gmbh.de> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; ocamlopt:01 0200,:01 hars:01 guyader:01 ocamlopt:01 compilation:01 powerpc:01 ocaml:01 compiler:01 ocaml:01 mingw:01 2009:98 wrote:01 wrote:01 caml-list:01 On Sat, Apr 04, 2009 at 12:02:53AM +0200, Florian Hars wrote: > Jean Guyader wrote: > >Is it possible to generate 32 bits assembly code with a 64 bits ocamlopt? > > If you are adventurous, you might be able to set up a cross compilation > environment, look at the PowerPC 405 thread from a few days ago for > ideas. OCaml 3.11.0 isn't really set up to do cross-compilation. For the Fedora Windows cross-compiler (which targets 32 bit Windows only at present) we build a 32 bit Linux native compiler first, even if the build arch is 64 bit. Ugly details here: http://hg.et.redhat.com/cgi-bin/hg-misc.cgi/fedora-mingw--devel/file/3a93f6f65967/ocaml/mingw32-ocaml.spec#l100 The changes required to make OCaml a true cross-compiler would be quite deep, and if I had 3 or 4 clear weeks I would love to come up with a good set of patches to do this and submit them back to INRIA. Unfortunately I haven't got 3 or 4 free days never mind weeks at the moment ... Rich. -- Richard Jones Red Hat