Generating LLVM code for 'lambda', 'define'

前端 未结 1 821
粉色の甜心
粉色の甜心 2021-01-31 10:43

So I now have a fairly complete LISP (scheme) interpreter written in haskell. Just for fun I want to try to have it compile down to LLVM. Most of the code generation seems pre

相关标签:
1条回答
  • 2021-01-31 10:55

    See Lennart's blog post: http://augustss.blogspot.com/2009/06/more-llvm-recently-someone-asked-me-on.html

    Look at the compileFunction function. In particular, newFunction in the LLVM core: http://hackage.haskell.org/packages/archive/llvm/0.9.1.2/doc/html/LLVM-Core.html#g:23

    0 讨论(0)
提交回复
热议问题