[haskell-llvm] haskell-llvm An LLVM backend for DDC
Erik de Castro Lopo
mle+hs at mega-nerd.com
Tue Jun 29 17:09:48 EDT 2010
Erik de Castro Lopo wrote:
> David Terei wrote:
>
> > If you go about replacing them then it would be nice if you did it by
> > abstracting them out rather then just changing the concrete data
> > types. That way potentially we could both use the same code base.
>
> I will definitely keep that in mind.
David, as you may have seen here:
http://www.mega-nerd.com/erikd/Blog/CodeHacking/DDC/llvm_backend.html
I have a rough hack that works as a proof of conecpt.
First pass of that rough hack included compiling/linking with the package
ghc-6.12.1 so as to access these modules:
Constants
FastString
Outputable
PprBase
Pretty
Unique
which are being used in your current code in the GHC Darcs repo.
I have now done a second pass where, in about 200 lines of code,
I hacked up minimal replacements for the above modules and no longer
need to link the ghc-6.12.1 package.
Currently my only modifications to your code are to comment out
a couple of #include lines.
This is working out well.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Haskell-llvm
mailing list