From: John Goerzen <jgoerzen@complete.org>
To: Jon Harrop <jdh30@cam.ac.uk>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml to C
Date: Sat, 8 May 2004 16:37:16 -0500 [thread overview]
Message-ID: <20040508213716.GA31881@complete.org> (raw)
In-Reply-To: <200405072211.12238.jdh30@cam.ac.uk>
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
next prev parent reply other threads:[~2004-05-08 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-07 21:11 Jon Harrop
2004-05-08 21:37 ` John Goerzen [this message]
2004-05-09 8:50 ` Jere Sanisalo
2004-05-09 19:48 ` David Brown
2004-05-10 19:10 ` John Goerzen
2004-05-10 20:03 ` Eric Stokes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040508213716.GA31881@complete.org \
--to=jgoerzen@complete.org \
--cc=caml-list@inria.fr \
--cc=jdh30@cam.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox