On 22 February 2010 00:09, Malcolm Wallace <malcolm.wall...@cs.york.ac.uk> wrote: > There is already a published Haskell binding for LLVM on Hackage. Does your > new binding cover the same territory? Or different aspects? Could it be > converted to use the existing binding? Or could your features be merged > with theirs?
A good intro to that binding can be found at http://augustss.blogspot.com/2009/01/llvm-llvm-low-level-virtual-machine-is.html. My binding is fairly straight forward. It provides a way to represent LLVM assembly code in Haskell and the ability to write it to a file. Once in a file it can then be processed by calling the various llvm tools (e.g llvm-as, opt, llc). The other way to interact with llvm is through a C++ API that llvm provides which allows you to build up llvm code programmatically and then do a variety of things on it such as optiming, compiler (inlcuing JIT), interpretitng.. ect. Bryan and Lennart's Haskell LLVM binding works this way, providing a Haskell binding to the C++ API as well as a higher level type safe interface to it. So the two bindings cover very different territory. They can be used for the some of the same things but the approach is very different and there wouldn't really be anything to be gained from trying to merge them. _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc