How do I view assembly?
    Alex Rønne Petersen 
    alex at lycus.org
       
    Fri May 18 07:48:07 PDT 2012
    
    
  
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.
-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org
    
    
More information about the Digitalmars-d-learn
mailing list