How do I view assembly?

Sandeep Datta datta.sandeep at gmail.com
Fri May 18 07:51:17 PDT 2012


On Friday, 18 May 2012 at 14:48:07 UTC, Alex Rønne Petersen 
wrote:
> On 18-05-2012 16:46, Sandeep Datta wrote:
>> Hi,
>>
>> Is there a way by which I can see the assembly code generated 
>> by the D
>> compiler similar to the -S etc switches on GCC?
>>
>> Regards,
>> Sandeep Datta.
>
> Not with DMD. What you have to do is disassemble the file with 
> objdump -D foo.o (add -M intel to maintain your sanity)
>
> On Windows, there's a dump tool called dumpobj shipped with DMD 
> IIRC.

Wow, that was fast! Many thanks Alex Rønne Petersen.


More information about the Digitalmars-d-learn mailing list