Re:Welcome to C-- (2008)
by bradrn on Sunday January 23, 2022 @08:12AM
(#30045897)
Yes, GHC still uses Cmm as its backend: https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/cm...
[ Parent
| on HN ]
Re:Welcome to C-- (2008)
by nextaccountic on Sunday January 23, 2022 @05:26PM
(#30051167)
> A .cmm file is rather like C--. The syntax is almost C-- (a few constructs are missing), and it is augmented with some macros that are expanded by GHC's code generator (eg. INFO_TABLE()).
> (...)
> We say that Cmm is GHC's implementation of C--. This naming scheme is not done consistently everywhere, unfortunately. If you are interested in C-- (which have diverged from Cmm), you can check out its specification.