[LLVMdev] A non-JIT tutorial?

Dominic Hamon dom.hamon at gmail.com
Sat May 17 18:34:59 PDT 2008


Talin wrote:
> I think a tutorial for running and debugging LLVM programs in non-JIT 
> mode would be very useful. The Kaleidoscope tutorial was immensely 
> useful, but for folks like me who want to produce native binaries, it 
> kind of tapers off right before the really interesting part. Of course, 
> I recognize why this is: Any tutorial dealing with native binaries is 
> going to have to deal with issues of different platforms and toolsets.
>
>   
Yes please! I'm getting to the point in my project where I'm going to 
start wanting to generate native assembler instead of just the IR and I 
currently have no way of knowing where to start.

I'd also add that the 'problem' the OP mentions is actually the benefit 
in the tutorial; it's an opportunity to show off how versatile LLVM 
really is.

I think an easy place to start is from one of the chapters of the 
Kaleidoscope tutorial, where we have a fairly mature language 
implementation working to the IR stage. Just adding a chapter or two on 
how to go from here to something that someone with standard dev tools 
can get into a native binary would really round out the tutorial.

Dominic




More information about the llvm-dev mailing list