How to replicate the functionality of http://asm.dlang.org/ locally?
How can I print the assembly output of a compiled code-snippet written in d language?
The easiest way is to disassemble the compiled object file or final binary. On linux, you can use objdump
and on Windows, Digital Mars sells an obj2asm
utility.
I tend to use disassemble <function>
command in gdb - it allows for more interactive investigation compared to objdump. Quite likely, "your favorite debugger name" will have something similar.
如果将LDC用作D编译器,则可以指定命令行选项-output-s
来产生程序集输出。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.