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.
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
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.
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
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
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
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.
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