Comment

Comment by jz_

Historically speaking, GHC has had C backend option to facilitate porting.

https://downloads.haskell.org/~ghc/9.4.2/docs/users_guide/co...

> -fvia-C

> Use the C code generator. Only supposed in unregisterised GHC builds.

> This is the oldest code generator in GHC and is generally not included any more having been deprecated around GHC 7.0. Select it with the -fvia-C flag.

> The C code generator is only supported when GHC is built in unregisterised mode, a mode where GHC produces “portable” C code as output to facilitate porting GHC itself to a new platform. This mode produces much slower code though so it’s unlikely your version of GHC was built this way. If it has then the native code generator probably won’t be available. You can check this information by calling ghc --info (see --info).

parent jz_ 4 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton