caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* 64 bits ocamlopt to generate 32 bits code
@ 2009-04-03 16:31 Jean Guyader
  2009-04-03 21:45 ` [Caml-list] " Goswin von Brederlow
  2009-04-03 22:02 ` Florian Hars
  0 siblings, 2 replies; 4+ messages in thread
From: Jean Guyader @ 2009-04-03 16:31 UTC (permalink / raw)
  To: caml-list

Hello,

Is it possible to generate 32 bits assembly code with a 64 bits ocamlopt?

Thanks,
-- 
Jean Guyader


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] 64 bits ocamlopt to generate 32 bits code
  2009-04-03 16:31 64 bits ocamlopt to generate 32 bits code Jean Guyader
@ 2009-04-03 21:45 ` Goswin von Brederlow
  2009-04-03 22:02 ` Florian Hars
  1 sibling, 0 replies; 4+ messages in thread
From: Goswin von Brederlow @ 2009-04-03 21:45 UTC (permalink / raw)
  To: Jean Guyader; +Cc: caml-list

Jean Guyader <jean.guyader@gmail.com> writes:

> Hello,
>
> Is it possible to generate 32 bits assembly code with a 64 bits ocamlopt?
>
> Thanks,
> -- 
> Jean Guyader

Afaik no.

MfG
        Goswin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] 64 bits ocamlopt to generate 32 bits code
  2009-04-03 16:31 64 bits ocamlopt to generate 32 bits code Jean Guyader
  2009-04-03 21:45 ` [Caml-list] " Goswin von Brederlow
@ 2009-04-03 22:02 ` Florian Hars
  2009-04-05 21:08   ` Richard Jones
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Hars @ 2009-04-03 22:02 UTC (permalink / raw)
  To: Jean Guyader; +Cc: caml-list

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.

The easier way is probably to set up a 32 bit chroot environment and
compile there.

- Florian.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] 64 bits ocamlopt to generate 32 bits code
  2009-04-03 22:02 ` Florian Hars
@ 2009-04-05 21:08   ` Richard Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Jones @ 2009-04-05 21:08 UTC (permalink / raw)
  To: Florian Hars; +Cc: Jean Guyader, caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-05 21:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-03 16:31 64 bits ocamlopt to generate 32 bits code Jean Guyader
2009-04-03 21:45 ` [Caml-list] " Goswin von Brederlow
2009-04-03 22:02 ` Florian Hars
2009-04-05 21:08   ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).