caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alex Baretta <alex@barettadeit.com>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Running bytecode...
Date: Fri, 17 Jun 2005 11:47:31 +0200	[thread overview]
Message-ID: <42B29C33.1010302@barettadeit.com> (raw)
In-Reply-To: <ad8cfe7e050617003372e61cee@mail.gmail.com>

Jonathan Roewen wrote:
> How can I load & run ocaml bytecode from my ocaml program that's built
> with the nativecode compiler tools?
> 
> Jon

The short answer is you can't. It's a pity, but to the present day the
vanilla Ocaml distribution does not support mixing native and byte-code.
Also, it is not possibile to Dynlink native code, which is even more of
a pity.

There are libraries and patches to achieve this; however, they are
hardly maintained. I remember Asmdynlink, which was in the now defunct
CDK (Caml develpment kit). There is a also a patch to the compiler (3.07
last time I looked at it) which also allows native dynlink.

Alex

-- 
*********************************************************************
http://www.barettadeit.com/
Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)
<http://www.asxcaml.org/>

The FreerP Project
<http://www.freerp.org/>


  reply	other threads:[~2005-06-17  9:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-17  7:33 Jonathan Roewen
2005-06-17  9:47 ` Alex Baretta [this message]
2005-06-17  9:51   ` [Caml-list] " Jonathan Roewen
2005-06-17  9:57     ` Alex Baretta
2005-06-18  7:47       ` John Skaller

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=42B29C33.1010302@barettadeit.com \
    --to=alex@barettadeit.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jonathan.roewen@gmail.com \
    /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).