Re:Welcome to C-- (2008)
by andai on Sunday January 23, 2022 @07:30AM
(#30045669)
This one (the OP) is used by the Glasgow Haskell Compiler, apparently they still use it? I remember reading it was only used in the early days but I might be confusing it with cfront.
[ Parent
| on HN ]
Yes, GHC still uses Cmm as its backend: https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/cm...
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.