[LLVMdev] writing llvm ir not in c++
dpitsbawn at gmail.com
Mon Oct 13 11:27:00 PDT 2014
Ah ok. I should check that out.
My first time implementing something like this, so apologies if this is an
obvious question -- but why is that JIT and GC go hand-in-hand? I'm trying
to think what is the relationship between converting source code to LLVM
IR, that if I want it be like Java or even more dynamic typing sorts --
what is the rationale that a GC is required. And that somehow JIT and GC
are related in this.
Would love to know if I could pick up these concepts somewhere.
On Mon, Oct 13, 2014 at 11:03 AM, Jonathan Roelofs <
jonathan at codesourcery.com> wrote:
> On 10/13/14 11:44 AM, Eli Bendersky wrote:
> > On Mon, Oct 13, 2014 at 10:35 AM, Dave Pitsbawn <dpitsbawn at gmail.com>
> >> Is it possible to write LLVM IR but not using C++?
> >> I'm exceedingly terrible at C++.
> >> I was thinking, isn't it possible to write the IR using Java?
> > You can use llvmpy (Python bindings to LLVM) to create LLVM IR modules,
> > you'd like. [http://www.llvmpy.org/]
> LLVM also has C bindings. I'm not aware of a tutorial specifically for
> bindings, but a great reference for things along the line of "how do use
> LLVM as
> my language's backend" is the Kaleidoscope tutorial:
> http://llvm.org/docs/tutorial/ (which has guides for both OCaml and C++).
> >> I effectively have emit some sort of binary op codes to be passed into
> >> llvm right?
> > Not sure what you're asking here, can you clarify?
> > Eli
> Jon Roelofs
> jonathan at codesourcery.com
> CodeSourcery / Mentor Embedded
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev