DMD now incorporates a disassembler

Walter Bright newshound2 at digitalmars.com
Fri Jan 7 21:41:55 UTC 2022


Compile with -vasm to see it! Enjoy!

For the file test.d:

   int demo(int x)
   {
     return x * x;
   }

Compiling with:

   dmd test.d -c -vasm

prints:

   _D4test4demoFiZi:
   0000:   89 F8                   mov     EAX,EDI
   0002:   0F AF C0                imul    EAX,EAX
   0005:   C3                      ret


https://github.com/dlang/dmd/pull/13447


More information about the Digitalmars-d-announce mailing list