Hi, Isn't it intended to explain how to build a compiler for a custom language that targets LLVM-IR ? Is it useful also to understand how to build a VM that is meant to execute custom bytecode (converting it to LLVM-IR previously) ? Thanks, Gabriele Il giorno 05/apr/09, alle ore 11:36, Anton Korobeynikov ha scritto:> Hello, Gabriele > >> thanks for the suggestion. Do you know if there are any articles >> around that explains how to use LLVM to build a VM that should work >> like mine ? >> I've read something around (mostly source code) but a good article/ >> doc >> will be perfect > Have you read the 'Kaleidoscope' tutorial? > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State > University > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Gabrielle, The way I see it, its pretty much the same thing... Conversion to LLVM-IR of a custom bytecode is the same as conversion to LLVM-IR of a custom language. The syntax of the 'custom language' just happens to be binary bytecode. On Sun, Apr 5, 2009 at 1:15 PM, Gabriele Farina <gabriele at sephiroth.it>wrote:> Hi, > > Isn't it intended to explain how to build a compiler for a custom > language that targets LLVM-IR ? Is it useful also to understand how to > build a VM that is meant to execute custom bytecode (converting it to > LLVM-IR previously) ? > > Thanks, > Gabriele > > Il giorno 05/apr/09, alle ore 11:36, Anton Korobeynikov ha scritto: > > > Hello, Gabriele > > > >> thanks for the suggestion. Do you know if there are any articles > >> around that explains how to use LLVM to build a VM that should work > >> like mine ? > >> I've read something around (mostly source code) but a good article/ > >> doc > >> will be perfect > > Have you read the 'Kaleidoscope' tutorial? > > > > -- > > With best regards, Anton Korobeynikov > > Faculty of Mathematics and Mechanics, Saint Petersburg State > > University > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090407/3a7d3eea/attachment.html>
Well, you are right :) In fact I've started porting the VM in the spare time and it is working fine. I'm still having some issues to understand the garbage collector, but I'll delve more into it as soon as the other features will be complete Gabriele Il giorno 07/apr/09, alle ore 08:22, someguy ha scritto:> Gabrielle, > > The way I see it, its pretty much the same thing... Conversion to > LLVM-IR of a custom bytecode is the same as conversion to LLVM-IR of > a custom language. > > The syntax of the 'custom language' just happens to be binary > bytecode. > > On Sun, Apr 5, 2009 at 1:15 PM, Gabriele Farina > <gabriele at sephiroth.it> wrote: > Hi, > > Isn't it intended to explain how to build a compiler for a custom > language that targets LLVM-IR ? Is it useful also to understand how to > build a VM that is meant to execute custom bytecode (converting it to > LLVM-IR previously) ? > > Thanks, > Gabriele > > Il giorno 05/apr/09, alle ore 11:36, Anton Korobeynikov ha scritto: > > > Hello, Gabriele > > > >> thanks for the suggestion. Do you know if there are any articles > >> around that explains how to use LLVM to build a VM that should work > >> like mine ? > >> I've read something around (mostly source code) but a good article/ > >> doc > >> will be perfect > > Have you read the 'Kaleidoscope' tutorial? > > > > -- > > With best regards, Anton Korobeynikov > > Faculty of Mathematics and Mechanics, Saint Petersburg State > > University > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090407/4afb303a/attachment.html>