Bug 16969 – [backend] add an assembly writer

Status
RESOLVED
Resolution
REMIND
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-12-13T11:45:06Z
Last change time
2019-01-02T16:19:59Z
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2016-12-13T11:45:06Z
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.