Compiler-Explorer syle mode for Emacs [with OCaml support]


The animated GIFs explain things better there than I could do in words here. Also, pasting a lightly edited version of my comment on r/haskell

I realize that people writing OCaml are not inspecting assembly all that often (compared to say C++ programmers). Nonetheless, this is a super interesting package, especially given that many of us here use Emacs or similar. Since it supports bytecode inspection as well, perhaps it could be hacked to include support for OCaml bytecode.

(I’m not the author, just spreading the word.)


This is really cool, thanks for sharing!

I think an interesting extension would be to have support for some of the compiler intermediate languages (lambda, cmm?), and e.g. be able to see neatly the effect of flambda optimizations.