digitalmars.D.bugs - [Issue 7867] New: -S compiler switch to output asm
- d-bugmail puremagic.com (26/26) Apr 08 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7867
- d-bugmail puremagic.com (16/16) Oct 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7867
http://d.puremagic.com/issues/show_bug.cgi?id=7867 Summary: -S compiler switch to output asm Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2012-04-08 17:41:29 PDT --- Looking at the asm produced by a system language is often useful, to know if a function was inlined, to see if the compiler has done certain expected optimizations, to verify certain compiler bugs, to compare the quality of a D compiler to a C or C++ compiler on similar code, to learn to write assembly, and so on. There are some ways to read the asm produced by the D compiler (like using obj2asm) but I suggest to add to DMD a compiler switch similar to "-S" of GCC to output the asm from the compiler itself. There was a request for it in D.learn too: http://forum.dlang.org/thread/hnmcepsrvpifhdzkeetf forum.dlang.org -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 08 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7867 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |WONTFIX --- Comment #1 from yebblies <yebblies gmail.com> 2012-10-29 03:29:10 EST --- Unlike gcc, the dmd backend generates machine code directly instead of generating assembly. You would need to pass the code through a disassembler in order to display the assembly. This is never going to happen, especially given how easy it is to just use objconv/objdump. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 28 2012