From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: wester@ilt.fhg.de
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Natively compiled code and toplevel
Date: Thu, 14 Jun 2001 11:06:45 +0900 [thread overview]
Message-ID: <20010614110645H.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <200106131434.QAA25999@ilt.fhg.de>
> I looked over the mktoplevel manual and as far as I understand it is
> possible to link compiled C-code with the mktoplevel but not to link
> with natively compiled OCaml code. Am I right and why is this the case?
>
> Rolf
You're right. To be efficient, native ocaml code does not use the same
conventions as C, so you cannot call a natively compiled ocaml function
as though it were a C function.
Fabrice Le Fessant has done some work on the other way round. See
asmdynlink on this page: http://pauillac.inria.fr/~lefessan/src/.
The idea is to be able to execute ocaml bytecode inside a native
program. With a large amount of hacking, it should be possible to
build an ocaml.opt, which in turn would allow you to link the toplevel
with native code...
I'm not sure it is worth the pain.
Cheers,
Jacques Garrigue
-------------------
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
next prev parent reply other threads:[~2001-06-14 2:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-13 14:34 wester
2001-06-14 2:06 ` Jacques Garrigue [this message]
2001-06-14 13:53 ` Fabrice Le Fessant
2001-06-14 2:13 David Gurr
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=20010614110645H.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=wester@ilt.fhg.de \
/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