Fiddling with GHC internals sounds like overkill for this project.
> Not sure how this fits into what I thought you were saying. Are youYes, that would be the basic idea:
> trying to use Haskell to build an AST, use GHC to optimize it, and
> then spit it out and compile it with, say, a OCaml program that you
> have already written?
1. Compile the Haskell metaprogram.
2. Evaluate main, possibly with a timeout, in a way that keeps all its
structure including lambdas accessible (e.g. Core).
3. Compile the resulting program with other tools.
This tool(set) is a specialised compiler for some low-level target
> What is this different tool and how does it fit in to your pipeline?
platform (FPGA, DSP, GPU - again, no clear decision yet), and it is the
second half of the pipeline after the GHC phases.
Gergely
--
http://www.fastmail.fm - The professional email service
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe