www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to produce assembly code using DMD ?

reply z_axis <z_axis 163.com> writes:
like GCC does using -s switch

regards!
Nov 28 2007
next sibling parent Daniel Keep <daniel.keep.lists gmail.com> writes:
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
Nov 28 2007
prev sibling parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"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.
Nov 28 2007