Kaleidoscope: Implementing a Language with LLVM

The LLVM Compiler System is being used for all sorts of interesting things these days. It basically provides an extremely modular and easy to use set of open source (BSD-licensed) compiler libraries that can be used to build various applications from. Despite this, many people don’t really understand it, and are scared away by the breadth of the project or by compilers in general. The Kaleidoscope tutorial starts out from scratch and slowly builds up a simple language to show how LLVM can help out with this. We end up with a JIT compiler for a fairly interesting little language with less than 700 lines of code. Of course, this is just the tip of the iceberg, once you start with LLVM, there are all sorts of things you can do.

13 Comments

  1. 2007-11-07 10:58 am
    • 2007-11-07 11:23 am
  2. 2007-11-07 11:23 am
  3. 2007-11-07 12:10 pm
    • 2007-11-07 3:24 pm
    • 2007-11-07 4:21 pm
      • 2007-11-07 5:52 pm
        • 2007-11-08 9:13 pm
          • 2007-11-08 9:34 pm
          • 2007-11-09 5:30 pm
    • 2007-11-07 6:09 pm
      • 2007-11-08 2:15 pm
  4. 2007-11-08 8:30 am