3 ms·
If you've never done it before, try stepping through a Haskell program compiled with a recent GHC. The control flow is pretty weird.
by MichaelBurge 10y ago
If you've never done it before, try stepping through a Haskell program compiled with a recent GHC. The control flow is pretty weird.
- astrange 10y agoYou can follow ghc's compilation with '-v5'. Alas, I've never liked the way it compiles - full of unpredictable jumps, makes no sense at asm level, and just doesn't look a good modern CPU citizen. Of course I am only a minor Haskell learner but jhc could do whole-program compilation with readable assembly. As for gcc, try 'gcc -fdump-tree-all -fdump-rtl-all-slim' and read the 50 files it prints.