Re:C--
by Dewie on Sunday October 27, 2013 @10:30AM
(#6622033)
Say you're writing a compiler for a language in Haskell, and you want to generate machine code rather than having it be interpreted. Is C-- a natural choice on this platform? Or might LLVM be a better choice?
[ Parent
| on HN ]
Re:C--
by carterschonwald on Sunday October 27, 2013 @01:14PM
(#6622568)
Use llvm-general. http://hackage.haskell.org/package/llvm-general
Idris uses llvm-general to have a simple llvm backend. Also llvm general is probably the nicest and most thorough llvm binding you'll find.