5 ms·
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
by Dewie 13y ago
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?
- carterschonwald 13y agoUse llvm-general. http://hackage.haskell.org/package/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.