Skip to content

Allow Access to generated STG from the GHC API

It would be really nice to be able to either:

  1. ) access STG from the GHC API and tell the compiler to stop at that point.
  2. ) be able to dump STG to some sort of separate ".stg" file for further processing.

This would enable other backends to be written, since all the heavy lifting has been done by the point its been converted to the spineless tagless g-machine and that representation is more suitable than Cmm for generating output for languages like JavaScript.

Trac metadata
Trac field Value
Version 6.6.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHC API
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information