Re:C--
by carterschonwald on Sunday October 27, 2013 @03:17PM
(#6623066)
LLVM-General but more so LLVM-General-Pure give you a starter kit for building something like that, http://hackage.haskell.org/package/llvm-general http://hackage.haskell.org/package/llvm-general-pure
But I'm a Luddite, though; I like self-hosting native compilers and I'm not terribly fond of the idea of having to pack a 20MB blob of C++ code with my code either. (There's a lot of apps that could profit from dynamic translation at run-time, but using LLVM for that feels unnecessarily heavyweight. I wish the algorithms and passes from LLVM were available in form of some high-level DSL that you'd be able to translate into whatever language you use and automatically adapt to whatever data structures you use in your code. It doesn't sound exactly impossible.)