English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] OCaml to C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-08 (21:36)
From: John Goerzen <jgoerzen@c...>
Subject: Re: [Caml-list] OCaml to C
On Fri, May 07, 2004 at 10:11:12PM +0100, Jon Harrop wrote:
> I was just wondering if there was a compiler which could convert ocaml code 
> into self-contained, efficient C code which could then be sold? By efficient, 
> I mean performance comparable to that of native-code compiled ocaml.
> I am asking because I think that C code (even unreadable C) may currently be 
> more commercially viable than ocaml code.

I believe there has been some work to develop C parsers or pretty
printers for camlp4.  I don't think that any of them can do exactly what
you want yet -- making a completely self-contained program -- since, of
course, there are pieces of the OCaml runtime to bring along.

However, if you are going to do that, why not just compile the code to
native code with ocamlopt and not worry about the C piece?

-- John

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