From: Joel Reymont <joelr1@gmail.com>
To: caml-list@yquem.inria.fr
Subject: ocaml, llvm and generating code at runtime
Date: Fri, 1 Jan 2010 16:45:34 +0000 [thread overview]
Message-ID: <405ED4B9-9B3C-4BAA-9C79-C18BB8FDDB4D@gmail.com> (raw)
Does anybody have example code that shows how to generate OCaml bindings at runtime with LLVM?
My goal is to compile an AST into code that uses OCaml functions within the same binary that's doing the compiling.
I don't think it can be done with OCaml since it requires a standalone assembler, linker, etc. Correct me if I'm wrong, though. Mine is a web-based compiler with potentially many concurrent sessions. Running gas, ld, etc. seems a much heavier and less scalable approach that generating code at runtime.
Thanks and Happy New Year, Joel
---
http://wagerlabs.com
next reply other threads:[~2010-01-01 16:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-01 16:45 Joel Reymont [this message]
2010-01-01 17:39 ` [Caml-list] " Basile STARYNKEVITCH
2010-01-01 19:08 ` Jon Harrop
2010-01-01 20:23 ` Basile STARYNKEVITCH
2010-01-01 22:29 ` Jon Harrop
2010-01-01 22:33 ` Yoann Padioleau
2010-01-02 0:06 ` Jon Harrop
2010-01-01 19:31 ` Jon Harrop
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=405ED4B9-9B3C-4BAA-9C79-C18BB8FDDB4D@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@yquem.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