lhc icon indicating copy to clipboard operation
lhc copied to clipboard

Pipeline

Open jfaure opened this issue 5 years ago • 2 comments

Forgive me for asking, but what's your opinion of haskell->core->stg->llvm ?

jfaure avatar Mar 27 '19 20:03 jfaure

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.

lemmih avatar Mar 28 '19 07:03 lemmih

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:

csabahruska avatar Mar 28 '19 10:03 csabahruska