lemmih / lhc

The LLVM LHC Haskell Optimization System
http://lhc-compiler.blogspot.com/
The Unlicense
198 stars 16 forks source link

Pipeline #11

Open jfaure opened 5 years ago

jfaure commented 5 years ago

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

lemmih commented 5 years ago

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.

csabahruska commented 5 years ago

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: