Thread overview
How to produce assembly code using DMD ?
Nov 28, 2007
z_axis
Nov 28, 2007
Daniel Keep
November 28, 2007
like GCC does using -s switch

regards!
November 28, 2007

z_axis wrote:
> like GCC does using -s switch
> 
> regards!

AFAIK, you can't.  Walter sells a tool which will decompile an object file into assembler, though, as part of the extended utilities package.

Failing that, there's always ndisasmw.  Just be prepared to sprinkle your code with magic numbers to work out where the hell your functions are ;)

	-- Daniel
November 28, 2007
"z_axis" <z_axis@163.com> wrote in message news:op.t2h38nm91uofcn@sw2wolf...
> like GCC does using -s switch
>
> regards!

If you're on linux, DMD comes with another program, dumpbin, which you can do to disassemble an already-compiled object file.