From: "Daniel Bünzli" <daniel.buenzli@epfl.ch>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Writing a JIT compiler
Date: Fri, 25 Jun 2004 19:05:30 +0200 [thread overview]
Message-ID: <DCD796E6-C6C9-11D8-8EAE-000393DBC266@epfl.ch> (raw)
In-Reply-To: <20040625155517.GA4087@bourg.inria.fr>
Le 25 juin 04, à 17:55, Basile Starynkevitch [local] a écrit :
> I suggested him to generate C code (calling the
> appropriate OCaml caml_callback* when needed to apply functions) and
> then compile it (by forking a gcc command) as a shared library, and
> then dlopen it and using dlsym to get the function pointer and at last
> call it. You'll have to dlclose the library after using it. In
> principle, it is like using the Dynlink module, but ugly details
> differ.
If I remember well, Christophe Raffalli adopts a similar technique in
his program GlSurf. You may want to have a look to his (LGPL'd) code
[1].
Daniel
[1] <http://www.lama.univ-savoie.fr/~raffalli/glsurf>
-------------------
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-06-25 17:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-25 8:04 Jon Harrop
2004-06-25 8:52 ` Benjamin Geer
2004-06-25 9:53 ` Jon Harrop
2004-06-25 10:56 ` Basile Starynkevitch [local]
2004-06-25 9:59 ` Basile Starynkevitch [local]
[not found] ` <200406251325.15940.postmaster@jdh30.plus.com>
2004-06-25 15:55 ` Basile Starynkevitch [local]
2004-06-25 17:05 ` Daniel Bünzli [this message]
2004-06-26 13:45 ` [Caml-list] " Julian Brown
2004-06-26 19:18 ` Basile Starynkevitch [local]
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=DCD796E6-C6C9-11D8-8EAE-000393DBC266@epfl.ch \
--to=daniel.buenzli@epfl.ch \
--cc=caml-list@inria.fr \
/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