How do I view assembly?

2012-05-18 Thread Sandeep Datta
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.

Re: How do I view assembly?

2012-05-18 Thread Alex Rønne Petersen
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

Re: How do I view assembly?

2012-05-18 Thread Sandeep Datta
Ok, I just saw this http://stackoverflow.com/questions/3592587/digital-mars-d-compiler-acquiring-asm-output But please do let me know if it is still relevant.

Re: How do I view assembly?

2012-05-18 Thread Sandeep Datta
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

Re: How do I view assembly?

2012-05-18 Thread bearophile
Alex Rønne Petersen: On Windows, there's a dump tool called dumpobj shipped with DMD IIRC. I think you refer to obj2asm, that's not shipped with DMD. (A -S (or -asm) switch for DMD would be quite nice and useful). Bye, bearophile

Re: How do I view assembly?

2012-05-18 Thread Alex Rønne Petersen
On 18-05-2012 17:18, bearophile wrote: Alex Rønne Petersen: On Windows, there's a dump tool called dumpobj shipped with DMD IIRC. I think you refer to obj2asm, that's not shipped with DMD. Hmm, I could've sworn there was a tool for this shipped with the DMD tool chain... odd. (A -S

Re: How do I view assembly?

2012-05-18 Thread Adam D. Ruppe
On Friday, 18 May 2012 at 15:25:53 UTC, Alex Rønne Petersen wrote: Hmm, I could've sworn there was a tool for this shipped with the DMD tool chain... odd. The Linux folder of dmd has obj2asm, but the Windows version is part of Walter's $15 extended utilities package.

Re: How do I view assembly?

2012-05-18 Thread Alex Rønne Petersen
On 18-05-2012 17:30, Adam D. Ruppe wrote: On Friday, 18 May 2012 at 15:25:53 UTC, Alex Rønne Petersen wrote: Hmm, I could've sworn there was a tool for this shipped with the DMD tool chain... odd. The Linux folder of dmd has obj2asm, but the Windows version is part of Walter's $15 extended