<div dir="ltr"><div>Ah ok. I should check that out.</div><div><br></div><div>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.</div><div><br></div><div>Would love to know if I could pick up these concepts somewhere.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 13, 2014 at 11:03 AM, Jonathan Roelofs <span dir="ltr"><<a href="mailto:jonathan@codesourcery.com" target="_blank">jonathan@codesourcery.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 10/13/14 11:44 AM, Eli Bendersky wrote:<br>
> On Mon, Oct 13, 2014 at 10:35 AM, Dave Pitsbawn <<a href="mailto:dpitsbawn@gmail.com">dpitsbawn@gmail.com</a>> wrote:<br>
><br>
>> Is it possible to write LLVM IR but not using C++?<br>
>><br>
>> I'm exceedingly terrible at C++.<br>
>><br>
>> I was thinking, isn't it possible to write the IR using Java?<br>
>><br>
><br>
><br>
> You can use llvmpy (Python bindings to LLVM) to create LLVM IR modules, if<br>
> you'd like. [<a href="http://www.llvmpy.org/" target="_blank">http://www.llvmpy.org/</a>]<br>
</span>LLVM also has C bindings. I'm not aware of a tutorial specifically for these<br>
bindings, but a great reference for things along the line of "how do use LLVM as<br>
my language's backend" is the Kaleidoscope tutorial:<br>
<a href="http://llvm.org/docs/tutorial/" target="_blank">http://llvm.org/docs/tutorial/</a> (which has guides for both OCaml and C++).<br>
<br>
<br>
Cheers,<br>
<br>
Jon<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
>> I effectively have emit some sort of binary op codes to be passed into<br>
>> llvm right?<br>
>><br>
>><br>
> Not sure what you're asking here, can you clarify?<br>
><br>
> Eli<br>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Jon Roelofs<br>
<a href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a><br>
CodeSourcery / Mentor Embedded<br>
</font></span></blockquote></div><br></div>