6 ms·
If writing compilers in C++ sounds like a pain, there's also an OCaml version of this tutorial: http://llvm.org/docs/tutorial/OCamlLangImpl1.html http://llvm.or
by spacemanaki 13y ago
If writing compilers in C++ sounds like a pain, there's also an OCaml version of this tutorial: http://llvm.org/docs/tutorial/OCamlLangImpl1.html http://llvm.org/docs/tutorial/OCamlLangImpl1.html
- carterschonwald 13y agoOr check out the world class really nice llvm bindings in Haskell that were recently released: haskell.org/package/llvm-general They're already in use to provide an llvm backend for the idris compiler, and ill be using them myself soon too. One of the notable novelties about llvm general Is that you can manipulate the llvm AST as a normal Haskell data type. It also has really nice hooks for using most of the well maintained llvm Apis.
- oconnor0 13y agoThe URL for the llvm-general bindings is http://hackage.haskell.org/package/llvm-general http://hackage.haskell.org/package/llvm-general