3 ms·
In fact, there were at least two completely different programming languages called C--. This one seems yet another one
by andrewshadura 5y ago
In fact, there were at least two completely different programming languages called C--. This one seems yet another one
- andai 5y agoThis 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.
- bradrn 5y agoYes, GHC still uses Cmm as its backend: https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/cmm https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/cm...
- nextaccountic 5y ago> 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.