caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Warp" <warplayer@free.fr>
To: "Walter B. Rader" <wrader@OCF.Berkeley.EDU>, <caml-list@inria.fr>
Subject: Re: [Caml-list] Byte-code -> native code conversion?
Date: Thu, 3 Jan 2002 01:37:51 +0100	[thread overview]
Message-ID: <001f01c193ee$e07c8140$92b00d50@warp> (raw)
In-Reply-To: <Pine.SOL.4.43.0201021612200.23673-100000@famine.OCF.Berkeley.EDU>

> In theory, is it possible to "convert" a Caml byte-code program into
> a native executable (without the source code of that program being
> available)?
>
> I'm wondering if it would be possible to distribute Caml programs in
> byte-code format for portability, and the user may then choose to compile
> the program to native code for speed.
>
> Is this possible?  Difficult?  Any thoughts?

I think it won't be too much difficult to write a virtual machine which will
convert on-the-flow ocaml bytecode into native asm code, and then call it.
But seems like much efforts have been made in register assignation of the
ocaml interpreter ( under GCC ) to make the interpreter running faster, so
you can use bytecode compilation without a big speed loss.

Anyway, ocaml bytecode "translated" to native asm won't be as much optimized
as native can be.

Warp

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2002-01-03  0:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-03  0:16 Walter B. Rader
2002-01-03  0:37 ` Warp [this message]

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='001f01c193ee$e07c8140$92b00d50@warp' \
    --to=warplayer@free.fr \
    --cc=caml-list@inria.fr \
    --cc=wrader@OCF.Berkeley.EDU \
    /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;
as well as URLs for NNTP newsgroup(s).