instead of writing byte code, we could have a switch that would have for effect to output text files filled with a dump of the asm of what would be compiled.
The goal is not to have an intermediate format that can be compiled but rather to inspect the backend production. Currently with DMD we have to use *objdump* under linux, *IDA* under windows and other home solutions such as beaengine.
Comment #1 by dlang-bugzilla — 2017-07-19T07:19:51Z
FWIW, there is -vcg-ast which dumps the result of semantic analysis. There are also some other undocumented switches which dump the intermediate code tree, however I don't remember how to activate that behaviour.