lhc
lhc copied to clipboard
Pipeline
Forgive me for asking, but what's your opinion of haskell->core->stg->llvm ?
LHC used to go that route in the past but it requires you to deal with a bunch of GHCisms and I decided it wasn't worth it for me. @csabahruska is working on a compiler that uses GHC as a frontend, I believe. He can probably tell you more.
Our approach (GHC/GRIN) has the following pipeline: Haskell->Core->STG->GRIN->LLVM.
However simplexhc and simplexhc-cpp implements the STG->LLVM pipeline but without the frontend part. There are some blog posts about simplexhc: