* Ocaml(opt) & llvm
@ 2007-11-26 18:27 Basile STARYNKEVITCH
2007-11-26 19:31 ` [Caml-list] " Gordon Henriksen
0 siblings, 1 reply; 2+ messages in thread
From: Basile STARYNKEVITCH @ 2007-11-26 18:27 UTC (permalink / raw)
To: Caml Mailing List; +Cc: LLVM Developers Mailing List
Hello All (to Ocaml List & CC LLVM list)
As some might probably know, the LLVM compiler http://llvm.org/ has (at
least in its latest SVN snapshot) a binding for Ocaml. This means that
one could code in Ocaml some stuff (eg a JIT-ing compiler) which uses
(and links with) LLVM libraries.
http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-November/011481.html
http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-November/011507.html
However, to generate code with LLVM for Ocamlopt, this is not enough,
since while LLVM does have hooks to support garbage collection
http://www.llvm.org/docs/GarbageCollection.html
I don't know of any actual hooks to fit into the needs of Ocamlopt
garbage colector (which AFAIK require some specific frame descriptors in
the code, in some hashtables, which details are tricky and known to very
few implementors, perhaps only Xavier Leroy & Damien Doligez).
So is there any code to fit the Ocaml GC requirements into LLVM
abilities, ie to use LLVM to generate (eg JIT) code which respect Ocaml
GC requirements.
Of course, I do know that there are some typing issues and theoritical
points which I deliberately ignore here. I'm supposing the guy wanting
to LLVM for Ocaml is knowing that he seeks trouble.
And Metaocaml is (unfortunately) nearly dead: future (in ocaml 3.11 or
3.12) dynamic libraries ability is not a full replacement! Even if one
might generate Ocaml code and compile & dlopen it in a future version of
Ocaml.
Thanks for reading.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Ocaml(opt) & llvm
2007-11-26 18:27 Ocaml(opt) & llvm Basile STARYNKEVITCH
@ 2007-11-26 19:31 ` Gordon Henriksen
0 siblings, 0 replies; 2+ messages in thread
From: Gordon Henriksen @ 2007-11-26 19:31 UTC (permalink / raw)
To: caml-list
On Nov 26, 2007, at 13:27, Basile STARYNKEVITCH wrote:
> Hello All (to Ocaml List & CC LLVM list)
>
> As some might probably know, the LLVM compiler http://llvm.org/ has
> (at least in its latest SVN snapshot) a binding for Ocaml. This
> means that one could code in Ocaml some stuff (eg a JIT-ing
> compiler) which uses (and links with) LLVM libraries.
> [...]
To avoid cross-posting, my followups to this thread will be on llvmdev.
http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-November/011527.html
— Gordon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-26 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-26 18:27 Ocaml(opt) & llvm Basile STARYNKEVITCH
2007-11-26 19:31 ` [Caml-list] " Gordon Henriksen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox