Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Alain.Frisch@ens.fr
To: Nuutti Kotivuori <naked+caml@naked.iki.fi>
Cc: Caml list <caml-list@inria.fr>
Subject: Re: [Caml-list] Co-existence of byterun and asmrun impossible?
Date: Fri, 12 Dec 2003 22:58:18 +0100 (MET)	[thread overview]
Message-ID: <Pine.SOL.4.44.0312122248100.7951-100000@clipper.ens.fr> (raw)
In-Reply-To: <87zndx7mfq.fsf@naked.iki.fi>

On Fri, 12 Dec 2003, Nuutti Kotivuori wrote:

> That is, a native compiled version of ocamlrun could never exist -
> eg. no ocamlrun.opt nor ocaml.opt (native toplevel)?

ocamlrun is written in C (no Caml at all), so the question does not make
sense.

As for ocaml.opt, indeed, it cannot exist currently. AFAIK, there are some
small differences between native and bytecode GC, that makes it impossible
to have both at runtime in parallel. Another consequence is that it is not
possible to dynlink bytecode into a native compiled program (without the
issue above, it would be enough to include the bytecode interpreter in the
main program). In particular, no camlp4.opt, which is sad since it could
greatly improve compile times (well, it is possible to build a custom
camlp4.opt linked statically with .cmx syntax extensions, but this is not
the usual way to use camlp4).

Fabrice Le Fessant wrote the AsmDynlink library to load .cmo modules
from a native program (including wrappers to make the values of the two
world compatible). Fabrice: any news about an updated release?

-- Alain

-------------------
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


  reply	other threads:[~2003-12-12 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12 21:31 Nuutti Kotivuori
2003-12-12 21:58 ` Alain.Frisch [this message]
2003-12-12 22:49   ` Nuutti Kotivuori

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=Pine.SOL.4.44.0312122248100.7951-100000@clipper.ens.fr \
    --to=alain.frisch@ens.fr \
    --cc=caml-list@inria.fr \
    --cc=naked+caml@naked.iki.fi \
    /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