[LLVMdev] appropriate for run-time compilation of DSL?

edA-qa mort-ora-y eda-qa at disemia.com
Mon Apr 11 08:50:00 PDT 2011


I wish to know whether LLVM is an appropriate choice for a project I'm
working on (excuse me if this is the wrong list for this question).

I have a domain-specific-language (DSL) that is currently compiled to a
custom byte-code and run in a VM. This is written in C++. The DSL can
call high-level functions which are actually callbacks into the current
non-DSL environment. That is, these functions /leave/ the VM and work in
the the normal code and return results back into the VM loop.

For performance reasons I would now like to compile this code to native
machine code. What I need is to be able to produce a binary block of
data which can be distributed to other machines and run directly on
them. That is, compilation would be on a central machine and worker
machines would receive the code and execute it. From the docs and
tutorial I'm unsure how I would go about doing this step.

Can somebody confirm that LLVM can be used for what I want and point me
somewhat in the right direction?

-- 
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110411/cb4e59e8/attachment.sig>


More information about the llvm-dev mailing list